![]() I recommend you prefix all your services with a common set of initials, making them easier to find in the task manager. After installing NSSM, if you open a command prompt with administration access and navigate to the directory, entering NSSM on its own will give you a list of commands. NSSM stands for the Non-Sucking Service Manager, and you can download it from this URL. To start your app using npm start, just make sure a start script is in the package.json file.Instructor: One of the easiest ways to install a node application as a window service is to use an application called NSSM. For example, to run npm run start:prod, run the following command in the Cloud Shell: az webapp config set -resource-group -name -startup-file "npm run start:prod" To add a custom start file, run the following command in the Cloud Shell: az webapp config set -resource-group -name -startup-file ""Īpp Service can start your app using a custom command, such as an executable like run.sh. Be sure to use the -no-daemon argument because PM2 needs to run in the foreground for the container to work properly. To start your app with PM2, set the startup command to pm2 start -no-daemon. ![]() Starting from Node 14 LTS, the container doesn't automatically start your app with PM2. You can also configure a custom start file with the following extensions:
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |