Skip to content

Commit

Permalink
tweak basepath
Browse files Browse the repository at this point in the history
  • Loading branch information
essenciary committed Dec 13, 2023
1 parent 7e9f9bc commit f37935e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/resources/applications/ApplicationsController.jl
Original file line number Diff line number Diff line change
Expand Up @@ -482,12 +482,12 @@ function start(app::Application)
"GENIE_BANNER" => "false",
"GENIE_PUSH_ERRORS" => "false",
"GENIE_OPEN_BROWSER" => Base.get(ENV, "GENIE_OPEN_BROWSER", "true"),
# "BASEPATH" => real_base_path(Base.get(ENV, "GB_APP_BASEPATH", ""), app.port),
"BASEPATH" => real_base_path(Base.get(ENV, "GB_APP_BASEPATH", ""), app.port),
)

# in the cloud the :<port> becomes /<path>
# haskey(ENV, "GB_SOURCE") && ENV["GB_SOURCE"] == "cloud" && (cmd = addenv(cmd, "BASEPATH" => "/$(app.port)"))
haskey(ENV, "GB_HOST") && ENV["GB_HOST"] == "JuliaHub" && (cmd = addenv(cmd, "BASEPATH" => "/proxy/$(app.port)"))
# haskey(ENV, "GB_HOST") && ENV["GB_HOST"] == "JuliaHub" && (cmd = addenv(cmd, "BASEPATH" => "/proxy/$(app.port)"))

cmd |> run

Expand Down

0 comments on commit f37935e

Please sign in to comment.