Created
January 30, 2012 07:12
-
-
Save goldenboy/1703011 to your computer and use it in GitHub Desktop.
Bash script to install web2py on pythonanywhere.com (web2py.pythonanywhere.com)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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