Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreif/1157841 to your computer and use it in GitHub Desktop.
Save andreif/1157841 to your computer and use it in GitHub Desktop.
Script to create a new Heroku-ready Django project.
#!/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