pm2 Questions
1
My node app is deployed in /opt/hello/current
but when I start PM2 (pm2 startOrReload ecosystem.json --env production) with the following ecosystem.json , it doesn't seems to take in account the gi...
1
Solved
As a server administrator, I would like to view the command line arguments that a Node.js service was started with using pm2. (The ones that Node.js uses via process.argv)
The command pm2 show my-...
2
I'd like to write a JSON file using BASH but it seem's not working well..
My code :
sudo echo -e "Name of your app?\n"
sudo read appname
sudo cat "{apps:[{name:\"${appname}\",script:\"./cms/bin/w...
1
Solved
I am running PM2 on Ubuntu 16.04 and it seems that environment variables are being cached somehow. Is there an way of seeing which environment variables PM2 are using. The environment variables it ...
Abominate asked 29/9, 2016 at 20:31
3
Solved
I am investigating options for running node in a multi-core environment.
I'm trying to determine the best approach and so far I've seen these options
Use built in cluster library to spin up work...
2
Solved
I am trying to use the module pm2 to start my node js app everytime the server boots.
I have used the command pm2 startup ubuntu but each time I restart the server, my application is not running an...
Beriberi asked 17/8, 2015 at 14:54
1
I use pm2 to deal with node projects. Even when all projects are stopped via pm2, I see that pm2 God Daemon is always running and consuming about ~27M Ram. Here how it looks on ps aux:
nodeuser 25...
Diatomaceous asked 29/12, 2015 at 23:32
3
Solved
I'm using PM2 for clustering. It worked just fine when using NodeJS 0.10.31 and PM2 0.12.14.
I upgraded NodeJS to 0.12.4 and PM2 to 0.12.16 and now when launching the following command :
pm2 start...
4
Solved
I need to be able to start the app below with pm2 but don't know how to start it with pm2.
node --expose-gc bin/www arg1 arg2 arg3
I know about --node-args but I think is only for --expose-gc.
Deibel asked 29/12, 2014 at 14:46
3
I have an ecosystem.json file for my node app that I deploy using PM2.
I've tried configuring it a bunch of different ways, but have not had luck accomplishing my goal which is to:
be able to d...
Shippen asked 28/4, 2015 at 15:15
1
Solved
I am using aws ubuntu instance for my application and using node js to sync data from third party apis.
I have 6 node js scripts that calls every minute to sync data by making http request for man...
Sortilege asked 10/6, 2016 at 9:47
3
Solved
I use pm2 to keep my node.js app alive, I am starting my app with a configuration file that looks like this:
{
"name" : "myApp",
"script" : "app.js",
&quo...
3
Solved
I've searched a lot to figure out this question, but I didn't get clear explanation. Is there only one difference thing that clustered app can be scaled out and forked app cannot be?
PM2's public ...
1
Solved
I'm trying to send data from a my main app to a child process. I've tried a few different alternatives but I'm currently stuck. Advice or pointers is very much appreciated.
I'm following the docum...
2
Solved
I have a Node application running on a production server using PM2. When I ssh into the server and run htop I can see multiple PM2 God Daemon processes listed. I don't understand why there would be...
Mohenjodaro asked 19/1, 2016 at 20:18
2
I've used pm2 in the past for my express apps. I really like it. How do I get it to run hexo. Hexo starts with hexo server rather than with a js entry point.
1
Solved
pm2 has the following command line options:
startOrRestart <json>
startOrReload <json>
startOrGracefulReload <json>
but what are the differences between them?
As far as I u...
1
Solved
Is there a way to do a graceful restart of pm2 for all nodejs processes? I'm looking for something similar to Apache's graceful restart. Want to avoid killing a server execution in progress for eve...
2
Solved
I am using angular-fullstack for my application. I want to start my apps using pm2.
Angular-fullstack starts prodcution mode by grunt serve:dist, it runs several tasks including setting environme...
1
Solved
I using PM2 to run my nodejs application.
When starting it in cluster mode "pm2 start server -i 0": PM2 will automatically spawn as many workers as you have CPU cores.
What is the ideal number o...
Carry asked 3/10, 2015 at 22:58
1
Solved
Hi I was following a tutorial to build an nodejs app. This tutorial is using gulp, to run my app I just do gulp dev to start all things. In my gulpfile I have:
var fs = require('fs')
var gulp = re...
1
With Node v0.12.2, the cluster module supports Round-Robin (RR) load balancing, which ensures load is more evenly distributed than the previous OS-level load balancing.
So now we are spoilt for ch...
Peeved asked 9/4, 2015 at 16:36
2
Is there a way to tell pm2 to leave stderr and stdout alone (as opposed to writing to files)?
I'm using pm2 on Heroku using this gist as my model. Everything seems to work perfectly except that I...
4
Solved
Here is the link to the documentation on GitHub:
https://github.com/Unitech/pm2#startup-script-generation--pm2-startup
It is setup to work with Ubuntu/CentOS/Redhat. I need it to work with my Drea...
1
Solved
npm start will start my app just fine but when I do:
pm2 start app.js
I get:
[PM2] Spawning PM2 daemon
[PM2] PM2 Successfully daemonized
[PM2] Process app.js launched
┌──────────┬────┬──────┬──...
© 2022 - 2024 — McMap. All rights reserved.