naively tried ROC_BASIC_WEBSERVER_PORT=3000 roc dev
after finding these two lines in the basic-webserver repo, but i still get port 8000
Roc probably doesn't forward env args to the subprocess?
Does it work if you build and then add the env var to a call directly to the executable?
afraid not :/
$ roc build
main
$ ROC_BASIC_WEBSERVER_PORT=3000 ./main
Listening on localhost port 8000
ROC_BASIC_WEBSERVER_PORT is a recent addition that is not released yet, are you using a release of the basic-webserver platform?
ah ok :+1: yes using release 0.1
You can download the source and use it from a local folder like this:
app "yourapp"
packages { pf: "platform/main.roc" }
yes, fantastic! works like a charm :bow:
Last updated: Jul 06 2025 at 12:14 UTC