Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Does flask run production mode?
Post Flair (click to view more posts with a particular flair)
Post Body

Flask super beginner question.

I have deployed a few minimal flask apps just to see how Heroku works. Now that I'm working on API backend of my app, I want to know if Heroku deploys a production server for my app.

I did not add anything to my app for the production mode. When heroku deploys my api, my assumption is that it will deploy a development server.

Is that correct?

for example, this minimal app below:

---------------------------------------

from flask import Flask

app = Flask(__name__)

@ app.route("/")

def hello():

return "Hello World"

----------------------------------------

Will it run in production or development on Heroku?

Author
Account Strength
90%
Account Age
8 years
Verified Email
Yes
Verified Flair
No
Total Karma
3,362
Link Karma
766
Comment Karma
2,445
Profile updated: 1 month ago
Posts updated: 5 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago