pm2 Questions
3
Solved
We have been using pm2 quite successfully for running apps on our servers. We are currently moving to docker and we saw http://pm2.keymetrics.io/docs/usage/docker-pm2-nodejs/
But what is the point...
8
Solved
I want to make a repeatable job to send mail every 15 minutes taking data from a database table. In node js I can create the job but through PM2 I don't understand where to place the code and how i...
Airlike asked 28/2, 2017 at 5:55
3
Solved
I'm using pm2 and node js. What I want to do is set a maximum memory limit for an application. My dev server's limit is 500mb split between two applications. Ideally I would like to limit it to 200...
Fug asked 22/3, 2017 at 22:19
3
Solved
I using pm2. After I started my app several times, the id increased. I deleted all in pm2, and started again, but the id didn't count from 0 any more. How can I reset it?
6
Solved
At a Windows AWS server i have a NODE app and
i'm using PM2 to launch the app
I have tried the NPMs: "pm2-windows-startup" and "pm2-windows-service"
But after i restart my AWS i...
2
I run a Ubuntu server which is suddenly full because of pm2 logs taking 16GB. I tried pm2 flush. But this only clears the folder which took 4GB.
As root the ".pm2" folder is cleared but ...
4
I want to keep my node server alive. Therefore I use pm2 but if I try to start my server with
pm2 start index.js
I get the message:
pm2: command not found
So, I wanted to ask how to use local p...
5
Solved
First of all it's not a duplicate question of below:-
How to install npm -g on offline server
https://stackoverflow.com/questions/40976100/how-to-installl-pm2-on-offline-server
I install npmbox...
1
I've got a nodejs server that is being managed to pm2, but it is running as a different user (www-data, via su). I need to start a second server run as my own user id, but when I try to start it, I...
Imaginal asked 4/3, 2021 at 19:9
4
Solved
Previously I have had success implementing PM2, but not currently.
My node app does run just fine if I start it manually, but nothing I do gets it to run via PM2, even though PM2 appears to be st...
Milissamilissent asked 9/1, 2019 at 17:31
6
I have this node app deployed and runs fine with NODE_ENV=production yarn start.
I can demonize the app using
pm2 start npm -- start
but then it defaults to NODE_ENV=development config.
And ...
7
When I start my Nodejs app with pm2, other server users are not able to access the process.
Even if I start pm2 from a custom directory (not current user's ~/, what pm2 is using by default):
HOME...
Stiegler asked 24/8, 2015 at 9:10
18
Solved
I have a REST service built in node.js with Restify and Mongoose and a mongoDB with a collection with about 30.000 regular sized documents.
I have my node service running through pmx and pm2.
Yest...
4
I install the pm2 using npm install -g pm2 then when I run my node application using
pm2 start app.js
nothing is happening. when I run the command in terminal, it just go down another line. No ...
4
Solved
Can I flush the logs of only one app in Pm2?
Assuming my app id is 2
I tried
pm2 flush 2
but still it flushes all apps' logs.
Needs asked 14/12, 2018 at 3:1
3
My ecosystem.config.js file loads my environment great with this command:
pm2 start ecosystem.config.js
When I run any of these command, my environment is reloaded just fine:
pm2 reload myapp
pm...
Maryettamaryjane asked 7/11, 2017 at 20:9
4
Solved
My node-app is running in PM2. When I pull the latest version of my app off github and rebuild it, the site during the building process defaults to a much older version (probably the first version ...
3
I'm using a library, say I want the script that starts my app to be cli-lib start how can i go about that? I don't want to just run node app.js or any js file for that matter, the cli lib does that...
2
Solved
After removing the older version of nvm, i installed the latest version of node by using homebrew. However, i got some problem starting my project using pm2:
pm2-dev server.js
It loaded the pa...
1
we can serve our static files (like a frontend app) over http with a simple command in PM2 :
pm2 serve <path> <port>
How i can serve static files with SSL using the same command pm2 ser...
1
I have a production only error appearing in my pm2 logs that is giving me absolutely no helpful information - the callstack is not deep enough to view where it started in my own codebase, and I kno...
Spoof asked 9/9, 2022 at 18:22
6
Ok guys,
this is driving me nuts... Can't get my nodejs application to autostart@boot on a raspberry pi...
Machine: Raspberry 2 (Raspbian Jessie)
Tried almost every possible solution I found on ...
Acrophobia asked 25/9, 2015 at 11:27
1
Solved
Is there a CLI tag for running pm2 start npm -- start in a specific directory? I looked around but could not find an answer.
On the other hand, when I run pm2 without npm, I can specify which direc...
1
I was trying to setup strapi on AWS
I was following the instructions listed on their site: https://strapi.io/documentation/3.0.0-beta.x/deployment/amazon-aws.html
Here is my folder structure
And t...
8
I am using the Amazon EC2 with Ubuntu.
I am running the server using the PM2, as
pm2 start bin/www --log-date-format "YYYY-MM-DD HH:mm" --watch
It works fine but when I am trying to access API ...
Geranium asked 29/11, 2017 at 8:43
© 2022 - 2024 — McMap. All rights reserved.