Skip to content

Instantly share code, notes, and snippets.

@goldenboy
Created January 30, 2012 07:12
Show Gist options
  • Save goldenboy/1703011 to your computer and use it in GitHub Desktop.
Save goldenboy/1703011 to your computer and use it in GitHub Desktop.
Bash script to install web2py on pythonanywhere.com (web2py.pythonanywhere.com)
cd ~
wget -O web2py_src.zip http://web2py.com/examples/static/web2py_src.zip
unzip web2py_src.zip
echo "
PATH = '/home/"`whoami`"/web2py'
import os
import sys
sys.stdout = sys.stderr
os.chdir(PATH)
if not './' in sys.path[:1]: sys.path.insert(0,'./')
from gluon.main import wsgibase as application
" > /var/www/wsgi.py
cd web2py
python -c "from gluon.main import save_password; save_password(raw_input('admin password: '),80)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment