shows how to enable features in your pm2 config file that allow you to prevent runaway apps from bringing your server down. Setting max memory used, number of running processes allowed and maximum restart attempts are all covered. { "apps": [{ &…
In this lesson, you will learn how to configure node apps using pm2 and a json config file. Let's say there are tow node apps: app1, app2. What we want to do is create a json fie as config file for pm2. pm2.config.json: { "apps": [{ "name&q…
What we want is when the server side Node.js files have been changed, we want to use browserify to bundle all file and output just one file and later to show the console result in the browser. For this, frist we need auto-watch: grunt-contrib-watch:…
npm run allows you to configure scripts inside of your package.json file which can access locally installed node packages. If you're comfortable with this technique, you can also grunt, gulp, or other build tools by customizing your scripts and savin…