Skip to content

Instantly share code, notes, and snippets.

View gcollazo's full-sized avatar

Giovanni Collazo gcollazo

View GitHub Profile
$ rvm install 1.9.2 && rvm use 1.9.2 --default
$ gem install heroku
$ heroku keys:add
$ mkdir ~/Projects/heroku-template
$ cd ~/Projects/heroku-template
$ mkvirtualenv --no-site-packages theapp
$ workon theapp
$ pip install django
$ pip install psycopg2
$ pip freeze > requirements.txt
$ django-admin.py startproject theapp
$ chmod +x theapp/manage.py
web: theapp/manage.py runserver 0.0.0.0:$PORT --noreload
$ git init
$ git add .
$ git commit -m 'Initial Commit'
$ heroku create --stack cedar
$ git push heroku master