Question

Flask - Apache does not restart my app

I did some changes on my Flask app. Then I used these commands:

sudo service apache2 restart
sudo service apache2 reload

But Flask application is still old. I can see new HTML pages when I enter my site but main python file which runs my app is still old.

Subscribe
Share

I am using WSGI Apache module. I dont know, HTML pages has been updated but main .PY file hasnt.

I setup my app using this tutorial: https://www.digitalocean.com/community/tutorials/how-to-deploy-a-flask-application-on-an-ubuntu-vps

Hi! Are you using the WSGI Apache module or running your Flask app separately via Gunicorn? Have you tried clearing your browser’s cache?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!