Forums

Reload Always on task with bash (Django)

Hello,

I have a bash file that regroup the procedures when pulling code, migrating changes in DB schema, etc... and at the end reloads the web app by touch the wsgi file.

How could I achieve the same thing with an Always on task ? I tried touch the management command file, but it doesn't seem to reload anything.

Thanks in advance and have a good day, Lionel

You can use our api https://help.pythonanywhere.com/pages/API/#always_on with requests or just curl.

Hello,

Thank you, works like a charm.

Have a good evening, Lionel