Restart server from bash console

前端 未结 3 577
再見小時候
再見小時候 2021-01-14 12:02

Is there any way to restart the web server from within the bash console given in the browser for PythonAnywhere? I have searched google for a while

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-14 12:25

    PythonAnywhere has since added a API as well as a number of helper scripts including a script to reload a webapp from the console:

    pip3.5 install --user pythonanywhere
    pa_reload_webapp.py 
    

    Be sure to generate a API token before running a script.

提交回复
热议问题