How do I deploy web2py on PythonAnywhere?

后端 未结 5 1323
走了就别回头了
走了就别回头了 2021-02-07 21:16

How do i get a basic web2py server up and running on PythonAnywhere?

5条回答
  •  再見小時候
    2021-02-07 21:55

    Pastebin was down, I retrieved this from the cache.

    cd ~
    wget -O web2py_srz.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: '),433)"
    

提交回复
热议问题