Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

fix auto-restart option when server has arguments #912

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/master/starter.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ starter.run = function(app, server, cb) {
cmd = util.format('cd "%s" && "%s"', app.getBase(), process.execPath);
var arg = server.args;
if (arg !== undefined) {
cmd += arg;
cmd += ' ' + arg;
}
cmd += util.format(' "%s" env=%s ', app.get(Constants.RESERVED.MAIN), env);
for(key in server) {
Expand Down