You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 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 :)
The text was updated successfully, but these errors were encountered:
I saw this:
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 :)
The text was updated successfully, but these errors were encountered: