Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lacking key instruction in deployment to heroku #670

Open
Vasallius opened this issue Aug 26, 2021 · 1 comment
Open

lacking key instruction in deployment to heroku #670

Vasallius opened this issue Aug 26, 2021 · 1 comment
Labels
dash Dash Python applications. dashr Dash R applications.

Comments

@Vasallius
Copy link

The documentation only specifies

if __name__ == '__main__':
    app.run_server(debug=True)

However, this would cause problems on the deployment of the app to heroku, the correct code should include the heroku port variable

if __name__ == '__main__':
    app.run_server(debug=False, port=PORT)
@Vasallius Vasallius added dash Dash Python applications. dashr Dash R applications. labels Aug 26, 2021
@xhluca
Copy link
Collaborator

xhluca commented Aug 31, 2021

are you using gunicorn? or the development server?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dash Dash Python applications. dashr Dash R applications.
Projects
None yet
Development

No branches or pull requests

2 participants