usunyu   Stay hungry. Stay foolish.

Heroku Command Tips

Add Vim:

$ heroku plugins:install https://github.com/naaman/heroku-vim
$ heroku vim

Staging:

1. Starting from scratch:
$ heroku create --remote staging
$ git push staging master

$ heroku ps --remote staging

Keep Heroku Alive:

1. Installing the Scheduler add-on:
$ heroku addons:create scheduler:standard
2. Defining tasks app/bin/ping_server.py:
import urllib2

try:
    urllib2.urlopen("https://sleepy-scrubland-5678.herokuapp.com/")
    print "URL Exist"
except ValueError, ex:
    print "URL not well formatted"
except urllib2.URLError, ex:
    print "URL don't seem to be alive"
3. Testing tasks:
$ heroku run python bin/ping_server.py
4. Scheduling jobs:
$ heroku addons:open scheduler

Resource: