Skip to content

Instantly share code, notes, and snippets.

@durden
Created October 1, 2011 18:04
Show Gist options
  • Save durden/1256423 to your computer and use it in GitHub Desktop.
Save durden/1256423 to your computer and use it in GitHub Desktop.
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
- [email protected]: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
Copy link

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

@durden
Copy link
Author

durden 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