pm2 Questions
7
Solved
I have 2 nuxt projects that need to be run on the server. Whenever I run the app locally it seems to be working with:npm run dev, but on the server this needs to be ran under a subprocess, so I use...
Skippy asked 16/8, 2018 at 10:38
1
Solved
What I am trying to achieve is to deploy Angular 9 app to Azure App service with Linux OS (Windows does not suit me because Linux is cheaper)
I created Linux web app with Node 14 runtime.
After I d...
Ciracirca asked 30/3, 2021 at 12:33
5
Solved
I have compiled my react app using
react-scripts build
And it generated a build\ folder in the root directory of App.
I am running the build\ folder using
sudo serve -T -p 443 build/
This runs my...
Newt asked 2/5, 2018 at 18:10
3
I have a node server running on pm2 which depends on some external services.
When those servers go down I pm2 starts restarting my app, but this will keep going until it clogs up my cpu and ram on...
3
I created a ReactJS application using Create-React-App, and wanted to deploy it on a Linux server. I followed a tutorial that showed how to do so very simply by installing pm2 and serve, then after...
2
Solved
Is it possible to see the restart log/history with PM2 app?
I saw my nodeJS app restarted a few times but no clue when.
I've checked pm2 documentation but no luck.
Despondency asked 2/12, 2016 at 2:28
1
What does Heap Usage mean in the "Custom Metrics" window when running pm2 monit?
The value for my server gets dangerously close to 100%.
3
Solved
in an Ubuntu Server, I am unable to run the node.js app in cluster mode using PM2.
The command I use is :
PM2 start server.js --name Server -i max
When I list the PM2 processes, I can see th...
2
Solved
I have a Node.js app running on an AWS EC2(ubuntu) instance using pm2. I want to send logs generated by the app from EC2 to Cloudwatch. How can I achieve this?
Poignant asked 23/6, 2020 at 12:3
1
Solved
I am using gitlab ci cd pipe line to deploy my application to ubuntu server. I have different .env file for local and for dev env and its not a part of git repo (included in gitignore) how to get e...
Kerns asked 17/1, 2021 at 14:44
0
Let me preface the question by saying that I understand that there will probably not be a definitive, yes-or-no answer on this topic and that answers given might be opinion driven. However, I do re...
Buchholz asked 17/1, 2021 at 11:43
2
My ecosystem.config.js looks like this:
module.exports = {
apps: [{
name: 'production',
script: '/home/username/sites/Website/source/server.js',
env: { NODE_ENV: 'PRODUCTION' },
args: '--run-s...
Sennight asked 23/11, 2018 at 6:32
2
Solved
I setup my nodejs server successfully and I'm using it on Ubuntu 15.04 server, my issue is that I want my node applications to keep running when the server reboots so I tried pm2, forever and cront...
11
Solved
I am using pm2 to start my app but I'm not able to pass argument to it. The command I am using is pm2 start app.js -- dev. Though this works with forever.
5
I am using pm2 to start a node.js process, and I would like this process to be started automatically when the system (Ubuntu 14.04 on Intel Atom processor) is booted. I have followed the instructio...
Katharinakatharine asked 24/9, 2015 at 19:22
1
I have a pretty data heavy Node application. Besides common things like file uploading, the app also spawns detached (long running) child processes.
For an example, consider a user uploads a file...
3
Solved
I'm trying to use pm2 to manage a node.js cluster
pm2 start . -i 3
I'm currently running the app on heroku and using a Procfile with the above command, but I cannot figure out how to configure p...
1
Here is my Dockerfile:
FROM node:10-alpine
RUN mkdir -p /home/node/salvator/node_modules && chown -R node:node /home/node/$
WORKDIR /home/node/salvator
COPY package*.json ./
USER node
...
Finnic asked 5/3, 2020 at 10:45
0
Im running an app on Google App Engine, its a simple node js application, the start command i run it with is pm2 start build/index.js but i keep getting this error Start program failed: failed to d...
Litterbug asked 18/10, 2020 at 20:49
1
Solved
I am currently running node.js using pm2.
And recently, I was able to check "custom metrics" using the pm2 monit command.
Here, information such as Heap size, used heap size, and active r...
Scagliola asked 8/10, 2020 at 6:25
2
I am using the command pm2 start apps.json to start multiple apps in a single command. These apps are defined in apps.json:
{
"apps": [
{
"name": "foo",
"scri...
Tenantry asked 25/6, 2020 at 4:48
0
What's going wrong?
I have done some test and realized that when using threading with pm2 it causes memory leaks where it stacks up the threading instead of dumping them. I have tested both with pm...
Paragraphia asked 11/9, 2020 at 13:55
2
Please, do you know how resolve this issue ?
I searched everywhere without finding.
06:45 SELinux is preventing systemd from open access on the file /root/.pm2/pm2.pid. For complete SELinux messag...
5
Solved
I am trying to get a Node/Express application up and running on PM2. I can start the application fine with this command: npm start
This starts the app fine on port 3000.
If I try to start the ap...
Radtke asked 12/6, 2014 at 19:58
1
I want to deploy my Nuxt.js application on my remote server each time I commit into repository.
Here is my deploy.yml:
name: 'Deployment'
on:
push:
branches: ['master']
jobs:
deploy:
name: D...
Lucrecialucretia asked 31/5, 2020 at 10:5
© 2022 - 2024 — McMap. All rights reserved.