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.
Hi! Are you using the WSGI Apache module or running your Flask app separately via Gunicorn? Have you tried clearing your browser’s cache?
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