Server scripts work just like Package Scripts, but they only apply to server-related interceptor points, and they go in your
server.json. If you have several servers in a folder with their own
server-name.jsonfiles, the server scripts can be different per server.
The interception points which will fire a server script are:
Configure server scripts like so in your
Just like package scripts, you can also create ad-hoc scripts for a given server. They are executed with the
server run-scriptcommand. Define them as additional keys in the
"name" : "My Server"
"myScript":"server log --follow"
And run them like so:
server run-script myScript