By squirtwinkle
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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
Sounds like you would need to restart your Flask application instead. If you have a systemd service, you could do it with systemctl restart yourprojectname. If not, you could kill the Flask process using the kill command and then start it as normal.
You could take a look at the following tutirial on how to deploy a Flask app with Nginx and USWGI:
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.