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
"C:\Program Files\nodejs\npm.cmd" run start:production
The app launches OK this way, but users complain that they aren't able to authenticate to external website APIs, as if it wasn't reading the API keys correctly that are in the .env file.
Is it possible to launch npm apps as a Windows service?
If so, what is the best way to run npm apps as a Windows service, using NSSM or some other method? Should I be launching a .bat file, or running npm with arguments, running as LOCALSYSTEM or as a local user, etc.?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I have an npm app running successfully on my Windows 2022 server, launching it with command:
npm run start:production
I configured it to run as a Windows service using NSSM ( https://github.com/treeswift/nssm ) , NSSM is set up to launch:
"C:\Program Files\nodejs\npm.cmd" run start:production
The app launches OK this way, but users complain that they aren't able to authenticate to external website APIs, as if it wasn't reading the API keys correctly that are in the .env file.
Is it possible to launch npm apps as a Windows service?
If so, what is the best way to run npm apps as a Windows service, using NSSM or some other method? Should I be launching a .bat file, or running npm with arguments, running as LOCALSYSTEM or as a local user, etc.?
Beta Was this translation helpful? Give feedback.
All reactions