Associated GitHub issue: https://github.com/sgentle/phantomjs-node/issues/280  I have a simple app that does the following:  var     phantom = require('phantom'),     express = require('express'),     serve = express();  serve.get(...
I'm using pm2 (version 3.4.1) to manage the Laravel Echo websocket server. It runs perfect, but I'm trying to get it to auto-start after a machine reboot (which runs Ubuntu 16.04). To do this I followed these instructions:  $ pm2 startup [PM2...
I am currently programming Node.js with Express.js, and every time I change a line of code in the file router or app, I need to type the command:   pm2 reload id_project.   How do I make pm2 auto-reload the project when a file is changed?...
I have a website using nodejs. Problem is when user upload images the site stop working. That because of PM2 restart server when file change I think. How to solve this problem. thank you...
Issuing "pm2 restart all" will restart all of the processes pm2 is managing.  I am wondering:  If there have been changes to any of the source files, does this actually reload the changes?  Or does it just restart the existing pm2 process in...
My question is strictly related to the deployment. My code is good. At first I asked this question, please read that question as well. I have given detailed info about the project there also. However, I got some good response and I followed these ste...
I am using ES6 modules by adding the --experimental-modules arguments to Node. Running node --experimental-modules app.mjs works perfectly fine. However, when I run the same command with pm2 I get the following error:     Error [ERR_REQUIRE_ESM]: Mus...
I have an existing PM2 process that I would like to add the "--max-memory-restart" setting to. How can I do that? The process was created from the command line without a JSON file.  If I were creating a new process I would just run:  PM2 star...
Previously, I had node version v0.10.46 installed on my ec2 server. For a recent project, I decided to give pm2 a try and installed pm2 using  npm install pm2 -g.  But, pm2 start index.js errored out since the project was using some ES6 syntax with a...
I'm trying to start my nodejs app, the default cmd is the following :   pm2 start app.js   I can't do that because I use cross-env and the script as below:   "start": cross-env DOTENV_FILE=.env node build/app.js   So npm run start wil...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.