Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Codrspace deployment for heroku
Install rvm (ruby community equivalent of virtualenv):
- bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
Install ruby 1.9.2:
- rvm install 1.9.2 && rvm use 1.9.2 --default
Heroku:
- gem install heroku
- heroku create --stack cedar
- Automatically adds a git remote called 'heroku'
- Make sure to have a requirements.txt
- This causes heroku to detect the app as Python
- Move django project into subdirectory
- commit files
- git push heroku master
- git@heroku.com:blooming-samurai-1554.git
- Must use virtualenv and python 2.7
- Had problems installing requirements directly from a git repo:
- Sync db
- heroku run python main_app/manage.py syncdb
@kennethreitz

This comment has been minimized.

Copy link

commented Oct 1, 2011

Luckily, you don't even have to mess with rvm and such for the heroku toolbelt:
http://toolbelt.herokuapp.com/osx/readme

@durden

This comment has been minimized.

Copy link
Owner Author

commented Oct 1, 2011

Nice! Wish I would have seen that sooner... haha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.