Disable restarting the server after every code change

I’m building a Flask server using Replit (which I’m currently using for production), and every time I edit the source code, it restarts the server with the updated code. So whenever I’m editing the code, the server just becomes unusable due to constant crashing.

Is there any way to disable this auto-restarting feature, and instead have it only restart the server when I explicitly tell it to restart with the updated code?

By default, flask repls should not have automatic module reloading. What template are you using?

1 Like