Forums

Free account here - why is my server always running?

Hi - newbie to python and flask here. Created a simple code to deliver some messages for an SMS program I am trying to write. While testing on my local machine before uploading to PythonAnywhere, I always had to run the server first, leave the terminal running on my MacOs, and if I quit the terminal, the server would have stopped listening on whatever port (ex. 8080) I set it to listen to.

On PythonAnywhere, I have my simple Flask code to handle get and post requests

But I haven't started a console to run a server to respond to http requests from outside... though this code works whether I have a console running or not on PythonAnywhere. I thought I had to start a console and leave it running for this to work 24/7?

PythonAnywhere runs the server for you when you create a web app. You do not need to run the development server in a console.