Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restart server from bash console

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 and have not found anything relevant.

like image 264
IT Ninja Avatar asked Sep 15 '25 05:09

IT Ninja


1 Answers

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/<filename>

(where <filename> 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.

like image 77
Glenn Avatar answered Sep 16 '25 23:09

Glenn