0

I'm using Flask-Script. In development, I start my app by calling ./manage.py runserver and that would make it run on port 5000.

I'm trying to deploy my app with Apache. I can't find the directive that would supply the parameter runserver to my app.

0

1 Answer 1

2

You don't. Flask-Script is a convenient way to write management commands. The runserver command simply runs the development server for the app. In production, you don't want to run the development server. Instead, you use a WSGI server such as mod_wsgi or uwsgi and point it directly at the Flask app object. Also see the Flask docs on how to deploy.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.