17 lines
433 B
Bash
17 lines
433 B
Bash
|
read -p "Choose your admin password?" passwd
|
||
|
sudo pip install virtualenv
|
||
|
virtualenv venv --distribute
|
||
|
source venv/bin/activate
|
||
|
sudo pip install psycopg2
|
||
|
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 addons:add heroku-postgresql:dev
|
||
|
heroku scale web=1
|
||
|
heroku open
|