Created
October 1, 2011 18:04
-
-
Save durden/1256423 to your computer and use it in GitHub Desktop.
Codrspace deployment for heroku
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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
Luckily, you don't even have to mess with rvm and such for the heroku toolbelt:
http://toolbelt.herokuapp.com/osx/readme