Created
July 16, 2011 09:17
-
-
Save tkopczuk/1086193 to your computer and use it in GitHub Desktop.
Script to create a new Heroku-ready Django project.
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
#!/bin/bash | |
mkdir prancing_heroku | |
cd prancing_heroku | |
django-admin.py startproject prancing_heroku | |
echo "Django==1.3" > requirements.txt | |
echo "psycopg2" >> requirements.txt | |
echo "web: prancing_heroku/run_heroku_run.sh" > Procfile | |
echo "#!/bin/bash | |
. bin/activate | |
cd prancing_heroku | |
../bin/python manage.py runserver 0.0.0.0:\$PORT --noreload" > prancing_heroku/run_heroku_run.sh | |
chmod +x prancing_heroku/run_heroku_run.sh | |
git init | |
git add . | |
git commit -m "init" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment