E
E
Elvis2020-11-14 15:19:44
Flask
Elvis, 2020-11-14 15:19:44

How to restart the project faster?

Hey!
There is a project on flask, it is launched through systemd services.
Every time I need to make some changes, both in the python code and in the html templates, I need to restart the server with the command:
systemctl restart project
however, this is not so long, 10-15 seconds, but still annoying when you make changes all the time.
Is there a way to somehow let the application know that I have changed something and would it be good to take this into account?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2020-11-14
@Dr_Elvis

Run the project under the control of the WSGI server and set the restart conditions in it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question