Skip to content

Commit

Permalink
fix port
Browse files Browse the repository at this point in the history
  • Loading branch information
jrosell committed Aug 2, 2024
1 parent 6bc1a32 commit 21368bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/ambhtmx.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ ambhtmx_app <- \(
print("Set AMBHTMX_PROTOCOL, AMBHTMX_HOST and AMBHTMX_PORT environment variables to configure the server. By default, http://127.0.0.1:8000 is set.")
}
protocol <- protocol %||% Sys.getenv("AMBHTMX_PROTOCOL") %||% "http"
port <- port %||% Sys.getenv("AMBHTMX_HOST") %||% "127.0.0.1"
host <- host %||% Sys.getenv("AMBHTMX_PORT") %||% "8000"
port <- port %||% Sys.getenv("AMBHTMX_PORT") %||% "8000"
host <- host %||% Sys.getenv("AMBHTMX_HOST") %||% "127.0.0.1"
if (live != "") {
warning("live = TRUE is alpha")
cat(glue::glue("\nRun on the terminal for hot reloading:\nnpx nodemon --signal SIGTERM {live}\n\n\n"))
Expand Down
2 changes: 1 addition & 1 deletion inst/examples/06-basic-auth.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ c(app, context, operations) %<-% ambhtmx_app(
live = live_path
)


#' Authentication feature with secret cookies and .Renviron variables
app$get("/login", \(req, res) {
process_login_get(req, res)
Expand Down Expand Up @@ -87,3 +86,4 @@ app$post("/increment", \(req, res){

#' Start the app with all the previous defined routes
app$start(open = FALSE)

0 comments on commit 21368bb

Please sign in to comment.