How can I control which port is used for the Amber Smalltalk node.js server?
In the words of Johnny Thornton :
in the server /FileServer.st - after you updated it - I think there is a Makefile in the same directory to help you recompile
So there is no way to do this (currently ~ Amber 0.9.3) without editing the directlty file.
source to share
Starting today , it is now possible to specify a port for a NodeJS based server in the Amber developer version. This option is included in the 0.10.0 release for Amber.
The next line will start the server on the port 12345
:
node server/server.js -p 12345
EDIT:
Both the amber REPL and the amber server are bundled into a regular amber-cli tool. Starting with Amber 0.11.0, the server can be started by running the following command:
node ./cli/js/amber-cli.js serve --port 12345 --host 0.0.0.0
source to share