Forums

How to reload webapp over ssh?

Is there a way to trigger a webapp reload from the console? I'd like to deploy over ssh without having to keep the dashboard page open in a browser.

touch /var/www/your_domain_wsgi.py

This won't reload static files, or pick up new static URL mappings though.

This blog article may be of interest too: Git Push deployments on PythonAnywhere

I found another way to do this using mechanize in python

here's the code

https://github.com/a-y-s/high-cyril/