Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/guides/jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ job = JuliaHub.submit_job(
using Oxygen, HTTP
# Environment variable name `PORT` was used in older JuliaHub environments
# and has been replaced with `JULIAHUB_APP_PORT` in newer environments
PORT = parse(Int, get(ENV, "JULIAHUB_APP_PORT", ENV["PORT"]))
PORT = parse(Int, get(ENV, "JULIAHUB_APP_PORT", get(ENV, "PORT", "")))
@get "/" function(req::HTTP.Request)
return "success"
end
Expand Down
2 changes: 1 addition & 1 deletion test/jobenvs/job-exposed-port/server.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ using Oxygen, HTTP

# Environment variable name `PORT` was used in older JuliaHub environments
# and has been replaced with `JULIAHUB_APP_PORT` in newer environments
const PORT = parse(Int, get(ENV, "JULIAHUB_APP_PORT", ENV["PORT"]))
const PORT = parse(Int, get(ENV, "JULIAHUB_APP_PORT", get(ENV, "PORT", "")))
const NREQUESTS = Ref{Int}(0)

function results_json()
Expand Down
Loading