Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dirkk0/3653781 to your computer and use it in GitHub Desktop.
Save dirkk0/3653781 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