Closed Sdhowell3 closed 7 years ago
This is my setup for my vars file for my pm2 `pm2_apps:
path: /home/app/graphql/dist/ env: NODE_ENV: staging cmd: startOrGracefulReload pm2_service_name: pm2-app pm2_user: app`
I thought I could set the pm2 user but it seems to be overriding somehow. Also I can't seem to setup my logging correctly so that they are not in /home/ubuntu even though the app should be running /home/app and the logs be in there.
I figured it out `pm2_apps:
This is my setup for my vars file for my pm2 `pm2_apps:
arg: --name "graphql" --output "mnt/log/node/output.log" --error "/mnt/log/node/error.log" --pid "/mnt/log/node/.psm.pid"
error_file: /mnt/log/node/error.log
out_file: /mnt/log/node/output.log
pid_file: /mnt/log/node/.psm.pid
path: /home/app/graphql/dist/ env: NODE_ENV: staging cmd: startOrGracefulReload pm2_service_name: pm2-app pm2_user: app`
I thought I could set the pm2 user but it seems to be overriding somehow. Also I can't seem to setup my logging correctly so that they are not in /home/ubuntu even though the app should be running /home/app and the logs be in there.