I have a couple of forms in my config.rkt that I believe set the IP and port of the racket web server:
(define-option http-host #:default "127.0.0.1")
(define-option http-port #:default (or (getenv "PORT") "8000")
(string->number http-port))
(define-option url-scheme #:default "http"
(begin0 url-scheme
(current-application-url-scheme url-scheme)))
(define-option url-host #:default "127.0.0.1"
(begin0 url-host
(current-application-url-host url-host)))
(define-option url-port #:default (or (getenv "PORT") "8000")
(begin0 url-port
(current-application-url-port (string->number url-port))))
Both http-port
and url-port
are driven from the <APP_NAME>_PORT env var. Which I haven't set in my .env file.
However when I do a raco chief start
I get the following:
22:39:00 web.1 | [2022-06-29 22:39:00.057] [ 8894] [ debug] system: starting component server
22:39:00 web.1 | [2022-06-29 22:39:00.058] [ 8894] [ info] server: listening on 127.0.0.1:5100
22:39:00 web.1 | [2022-06-29 22:39:00.062] [ 8880] [ info] runner: application process started with pid 8894
And sure enough, I can get a login from http://127.0.0.1:5100 but the default is 8000? What am I missing about koyo port configuration?