servicer icon indicating copy to clipboard operation
servicer copied to clipboard

passing extra arguments clarification

Open FKPSC opened this issue 9 months ago • 0 comments

I saw this:

# Pass params to index.js by adding them after a `--` followed by space sudo ser create index.js -- --foo bar

and tried this: sudo ser create index.js -- --foo bar --start --enable --auto-restart I assume that everything after -- was given to node instead of servicer. I put -- --foo bar in the end of the command and everything worked.

If I did the right thing, maybe there should be a note to always put this parameter last. It might be obvious to experiences dev but it might saw some time and hair-pulling to others :)

FKPSC avatar Apr 26 '24 01:04 FKPSC