-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat: override port via environment variable #4182
Comments
Did you see this somewhere in the Shiny docs? It'd be useful to track down and to understand. From a quick code search here, Lines 510 to 514 in 55b37fd
The error you encounter is expected from these lines Lines 203 to 213 in 55b37fd
because Shiny thinks it's running inside Shiny Server and does a version check. I think there's clearly room for improvement, but it could be tricky to handle in a way that doesn't break assumptions across Shiny packages and services. Personally, I'd use a different environment variable passed directly to shinyApp(ui = ui, server = server, options = list(port = Sys.setenv("APP_PORT", 9001)) |
My understanding is that the environment variable
SHINY_PORT
can be used to override the port used by a shiny app. However this doesn't seem to be the case and, instead, leads to a spurious warning when used.See the following repro. It results in the following warning message:
The text was updated successfully, but these errors were encountered: