Forums

Understanding Deployment

I have built a application using Flask framework , now the way to start the application is to start a terminal and type "flask run" in the root folder of the app.But now I want to test the application by deploying it to pythonAnywhere , the problem I am thinking about is that I have only 100s for terminal ,so my terminal would terminate after 100s and so would my app.So how do I start my app without having to start a terminal session on PythonAnywhere?

Ok. Let's deal with this as a bunch of bullet points:

  1. 100 cpu seconds means 100 cpu seconds, not 100 seconds. That means that you processes can have a total of 100s of full use of a cpu and not 100s of total elapsed time.
  2. We don't terminate processes when you run out of cpu seconds, we just slow them down. We only terminate them after they have used 10x their cpu second allowance.
  3. flask run is not the way to run Flask apps on PythonAnywhere - we have web apps for that. There's even a helpful wizardy thing that will walk you through the process of creating one and getting it to user your code. Go to the help page and search for "I have built a web app"

Thanks glenn I will check it out.