Restart server from bash console

前端 未结 3 614
再見小時候
再見小時候 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:31

    There is a file for each of your web apps in /var/www. The naming of the file should make it obvious which file applies to which web app.

    Type

    touch /var/www/
    

    (where is the name of the file that is for the web app you want to restart) and server will notice that the modified date of the file has changed and restart your app.

提交回复
热议问题