Skip to content

Commit

Permalink
Add default value for JRUN_APP_BASE_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
nkottary committed Oct 20, 2020
1 parent a0a56fa commit 49c5317
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "SampleDash"
uuid = "c21cdcaf-0d93-4d92-8cdb-99636d8a79d4"
version = "0.0.1"
version = "0.0.2"

[deps]
Dash = "1b08a953-4be3-4667-9a23-3db579824955"
Expand Down
2 changes: 1 addition & 1 deletion src/SampleDash.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using Dash, DashHtmlComponents, DashCoreComponents

function run_app(host="0.0.0.0", port=8080)
app = dash(external_stylesheets = ["https://codepen.io/chriddyp/pen/bWLwgP.css"],
requests_pathname_prefix=ENV["JRUN_APP_BASE_PATH"])
requests_pathname_prefix=get(ENV, "JRUN_APP_BASE_PATH", "/"))

app.layout = html_div() do
html_h1("Hello Dash"),
Expand Down

0 comments on commit 49c5317

Please sign in to comment.