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
I have seen you can define args in the processes.json, but it would be really ideal to pass arguments directly to the app, ideally how forever does it, or otherwise exactly how the --node-args flag works.
To give a proper example, I can run my SailsJS app with certain parameters like sails lift --prod or sails lift --verbose I would love to somehow run pm2 start app.js --prod or pm2 start app.js --args="--prod"
Or is that somehow already possible?
The text was updated successfully, but these errors were encountered:
I have seen you can define
args
in theprocesses.json
, but it would be really ideal to pass arguments directly to the app, ideally how forever does it, or otherwise exactly how the--node-args
flag works.To give a proper example, I can run my SailsJS app with certain parameters like
sails lift --prod
orsails lift --verbose
I would love to somehow runpm2 start app.js --prod
orpm2 start app.js --args="--prod"
Or is that somehow already possible?
The text was updated successfully, but these errors were encountered: