Forums

restart server from bash console

Hello. How can i restart server from bash console?

I'm not 100% sure what you mean, but maybe Dashboard - Web -Green 'Reload' button?

Jim

No-no, i meant - how can i do the same thing, but via bash console? I nned to restart server after "hg pull" and update to make effect.

Sorry - take a look at:

https://www.pythonanywhere.com/forums/topic/89/

https://www.pythonanywhere.com/forums/topic/1486/

Otherwise you might have to wait for PA staff to respond to get a definitive answer.

touch /var/www/your_domain_wsgi.py

Seems like this is the answer, but im not sure how to test it. Anyway, thank you, jgmdavies!

Yup, that's right. If you touch the WSGI file then the web app will reload after a few seconds.