Open
Description
Code
# The run.py file
from decouple import config
from flask import Blueprint
from api import app, application
from api.routes import configure_routes
if __name__ == "__main__":
blueprint = Blueprint('api', __name__, url_prefix='/api')
configure_routes(application)
app.register_blueprint(blueprint)
app.run(
host=config('HOST', default='0.0.0.0'),
debug=config('DEBUG', default=False, cast=bool),
port=config('PORT', default=5000, cast=int)
)
Repro Steps (if applicable)
- run
gunicorn -b localhost:8080 -w 4 run:app
- open
localhost:8080/docs
Expected Behavior
When i start the app using python run.py
the endpoints in docs
url are correct.
Actual Behavior
When i start the ap using gunicorn
the docs
url do not show the endpoints
Environment
- Python version: 3.7.2
- Flask version: 1.1.1
- Flask-RESTPlus version: 0.13.0
- Flask-RESTful: 0.3.8