From d7a38b5350eda3b2aac870de22db55bd3c48caea Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sat, 17 Nov 2012 22:14:42 -0600 Subject: [PATCH] better heroku support --- VERSION | 2 +- scripts/setup-web2py-heroku.sh | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 scripts/setup-web2py-heroku.sh diff --git a/VERSION b/VERSION index 1a8eb1d2..3599a079 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.2.1 (2012-11-17 21:37:46) stable +Version 2.2.1 (2012-11-17 22:14:01) stable diff --git a/scripts/setup-web2py-heroku.sh b/scripts/setup-web2py-heroku.sh new file mode 100644 index 00000000..f5a904dc --- /dev/null +++ b/scripts/setup-web2py-heroku.sh @@ -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