Occasionally I need to run two node servers on two different Amber Smalltalk checkouts and it would be real convenient to be able to control this via the startup script, but my read of the startup script tells me that I'll have to edit some code, which is not ideal.

有帮助吗?

解决方案 2

According to Johnny Thornton:

in server/FileServer.st - after you have updated it there - I think there is a Makefile in that same dir to help you recompile

So there's no way to do it (currently ~ Amber 0.9.3) without editing a file directlty.

其他提示

Starting from today it is now possible in the Amber developer version to specify the port for the NodeJS based server. This option is included in the 0.10.0 release of Amber.

The following line will start the server on port 12345:

node server/server.js -p 12345

EDIT:

Both Amber REPL and Amber Server have been merged into a common tool called amber-cli. Starting with Amber 0.11.0 the server can be started by executing the following command:

node ./cli/js/amber-cli.js serve --port 12345 --host 0.0.0.0

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top