Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mt3/1160364 to your computer and use it in GitHub Desktop.
Save mt3/1160364 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