Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore watch PM2 parameter not working ecsystem.json for parse server #2152

Closed
tanzeelrana opened this issue May 12, 2016 · 4 comments
Closed

Comments

@tanzeelrana
Copy link

Hey Guys,

I have setup pm2 to run my parse-server according to the following tutorial

https://www.digitalocean.com/community/tutorials/how-to-migrate-a-parse-app-to-parse-server-on-ubuntu-14-04

Now the problem is the I have a logs folder and I it contains 2 types of logs

  • error logs
  • info logs

Now I want to keep watching the error logs and restart my server just in case but in the info logs I do not want to watch

my ecosystem.json file looks something like this :

eclipse_ parse_pacecourier___ ssh_root_159_203_35_195 _179x25

but this does not seem to work. Everytime I have a change in my info log file pm2 restarts my application

documents_ parse_pacecourier___root ssh_root_159_203_35_195 _179x47

My logs folder looks like this

documents_ parse_pacecourier____logs ssh_root_159_203_35_195 _179x47

Does any one know how I can make pm2 ignore my info file and not ignore error log files

@tanzeelrana tanzeelrana changed the title Ignore watch PM2 parameter not working ecsystem.json Ignore watch PM2 parameter not working ecsystem.json for parse server May 12, 2016
@soyuka
Copy link
Collaborator

soyuka commented May 25, 2016

Can't you just watch the file you need? watch: 'myerrlog.log'

@sjmn
Copy link

sjmn commented Aug 28, 2016

@tanzeelrana Did you find a solution? I'm having the precise problem you describe here.

@tanzeelrana
Copy link
Author

@sjmn

I added the logs folder into my ecosystem.json file. I was unable to specifically state a file name pattern to ignore

{ "name" : "pace app", "script" : "parse-server", "ignore_watch": ["logs"], "watch" : true, "merge_logs" : true,

@vmarchaud
Copy link
Contributor

See #2629 we group all issue into one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants