pm2 Questions
6
Solved
I am trying to pass some arguments to my Express application which is run by pm2. There wasn't any hint in their documentation to do so, but apparently it's possible to pass some EV to your node ap...
2
Solved
How can i use pm2 in combination with a package based on ES Module (type:"module")
I looked into similar Questions without any useful help (some say it does not work on windows, but i am ...
Branchia asked 22/12, 2021 at 14:8
3
Solved
I'm trying to start graphhopper using pm2... graphhopper is a java application and the way I initiate it on the terminal is by going to its folder and entering the following command:
java -jar matc...
3
Solved
I have problems with reloading PM2 configuration file after editing it:
{
"apps": [
...
{
"name": "foo",
"script": "foo/index.js",
"cwd": "foo",
"watch": false
}
]
}
I previously did
p...
3
I have a website made with React running on Digital Ocean with pm2 and NGINX. The entry point "/" loads just fine but when I try to go to the "/:username" route I just get 404 Not Found. My routes ...
Biolysis asked 26/10, 2018 at 20:31
5
I installed pm2 on Windows server 2012
npm install pm2 -g
I closed my PowerShell and opened it again.
When I try to run pm2 it fails with this error
> pm2 list
pm2 : The term 'pm2' is not ...
4
Solved
I run the nodejs app with yarn run start , what is the command for pm2 I should use?
pm2 yarn run start give me an error.
My package.json content
"scripts": {
"start": "budo main.js:dist/bundl...
2
Solved
i have an ordinary next js application with the following scripts in my package.json file.
"scripts": {
"dev": "next dev",
"build": "next build"...
3
Solved
I made two transports for errors and warnings in Winston that supposedly writes to files. The existing transport for console logging works fine, and I did check pm2 logs and saw the logs, but the t...
2
Solved
Say I have a pm2 process that runs every 5 minutes and takes less than a second to run:
pm2 start ./some-node-script.js --name some-node-script --cron "*/5 * * * *" --no-autorestart
Now ...
Porcine asked 24/7, 2020 at 15:41
4
I am using PM2 to keep my node.js apps running.
Is there any way to have PM2 restart my app every 1 hour?
3
Solved
I would like to reference this question because I am certain that someone will flag this as a duplicate.
I am not looking for another reference to supervisord. I'm sure that it is great and all, b...
2
Solved
Receiving an error when attempting to start node (next.js) app via yarn and pm2. My google fu didn't turn up anything useful. I suspect the issue is with nvm, though I don't have enough experience ...
2
Solved
We are using node module pm2 to run the server and capturing application logs.
But as the traffic is very huge, huge data is getting stored in single file which are around more than 100Gb.
Is there...
Xanthe asked 18/3, 2021 at 10:38
3
Solved
pm2 is killing detached child processes on watch restart (ie which have been spawned with detached:true, stdio:'ignore', and child.unref().
Is there a way of telling pm2 not to kill the tree of ch...
3
Solved
I have an electron app which uses pm2 to start some apps using the pm2 module.Everything is fine.However I am trying to implement the following feature:Renaming an app you have started.I know that ...
3
In my Node.js application I am calling an external API which takes more than 7 minutes to get the response, in the meantime I am getting this:
PM2 log : App [server:0] exited with code [0] via s...
7
Solved
I have deployed an express.js app on a Azure server. I use pm2 for process management.
The issue is pm2 keeps restarting almost every seconds.
staging@Server:/srv/apps/myapp/current$ pm2 list
┌──...
Rolan asked 10/5, 2016 at 17:45
1
If I use:
Nuxt @ v2.15.8
Environment: production
Rendering: server-side
Target: server
In this case, which of all assets folders does NUXT use?
Does NUXT in this case serve the assets from html/.nu...
4
Solved
I've been trying to deploy my Node project on a brand new DO droplet, but i'm having some problems with PM2.
My steps are a follows:
Node came installed on the Droplet image (Ubuntu, Node v4.4.4...
1
From my linux machine, typing pm2 status shows me
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ memory │ watching │
├──────────────┼────┼──────┼───────┼─────────┼─────────┼────────┼─...
2
Solved
I have a nodejs application which runs on pm2 and I need to be able to send email notifications whenever a crash/ restart occurs. My idea is to monitor the application for crashes and trigger a ma...
Plummet asked 25/2, 2020 at 12:35
3
How do I use pm2 to log only based off a keyword?
This is how pm2 is being called currently:
package.json file
"services": "pm2 start pm2.config.js --no-daemon",
4
Solved
I have an problem with PM2 in NodeJS.
Without PM2, we always have some lines of code like below to configure master process
if(cluster.isMaster){
//master process configuration
} else {
//worker...
4
Solved
I'm developing an ExpressJS app.
I use pm2 to load it:
myapp$ pm2 start bin/www
This works fine, except that adding the --watch flag doesn't seem to work; every time I change the JS source I nee...
© 2022 - 2024 — McMap. All rights reserved.