better heroku support

This commit is contained in:
mdipierro
2012-11-17 22:14:42 -06:00
parent db02948e08
commit d7a38b5350
2 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.2.1 (2012-11-17 21:37:46) stable
Version 2.2.1 (2012-11-17 22:14:01) stable
+15
View File
@@ -0,0 +1,15 @@
read -p "Choose your admin password?" passwd
sudo pip install virtualenv
sudo pip install postgresql2
virtualenv venv --distribute
source venv/bin/activate
pip freeze > requirements.txt
echo "web: python web2py.py -a '"$passwd"' -i 0.0.0.0 -p $PORT" > Procfile
git init
git add .
git add Procfile
git commit -a -m "first commit"
heroku create
git push heroku master
heroku scale web=1
heroku open