Skip to content

Dash.jl should automatically set port if corresponding PORT environment variable exists #70

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

Closed
rpkyle opened this issue Oct 14, 2020 · 0 comments · Fixed by #97
Closed

Comments

@rpkyle
Copy link
Contributor

rpkyle commented Oct 14, 2020

Currently, Dash.jl does not attempt to detect whether a PORT environment variable has been set before launching the server, so using a statement such as

run_server(app, "0.0.0.0")`

when deploying the app may fail to bind to the correct port. This may cause issues with Dash Enterprise or Heroku unless a workaround is used, e.g.

port = parse(Int64, ENV["PORT"])

run_server(app, "0.0.0.0", port)
@rpkyle rpkyle changed the title Dash.jl should automatically set port if their corresponding PORT environment variable exists Dash.jl should automatically set port if corresponding PORT environment variable exists Oct 14, 2020
@waralex waralex linked a pull request Apr 14, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant