-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Using PM2 to manage all processes #1776
Comments
Yes, you can use PM2 in fork mode with exec interpreter set to none. |
@ravi With exec_interpreter set to bash, the restart and stop commands fail, is this to be expected? |
Are you running a bash script? Try setting it to |
Yep. That works. |
Is there an example of this somewhere? |
Yeah, wondering if there's any documentation that could be added for non-node executables. |
and how would I pass this binary a file it needs? For instance I would start my postgrest (https://github.com/begriffs/postgrest) server like this:
postgrest.conf is a configuration file that postgrest needs. When I do
the process errors out. So how should I pass this file to postgrest? |
@barbalex you should use |
@vmarchaud Thanks a lot. For your answer and most of all for helping build this great tool. Somehow I missed that important detail in the documentation. It probably is there but as someone not much into this matter I guess I just did not know how to search correctly. Maybe this is a general way to do this sort of thing in node and that is why it is not mentioned in the pm2 docs? If so I would plead to add this example for all the poor frontend folks like me ;-) |
@vmarchaud thanks a lot for clarifying that. So it's true that this is a catch for noobs like me who think this may be a node thing when it really is unix ;-) Any way I offered clarifying this in the postgrest repository (PostgREST/postgrest-docs#105) where it would have been most helpful for me. |
I want to use PM2 to manage all of my processes, even non node ones. I have some processes written in Haskell and Go (which are compiled) and run in a bash environment. Does PM2 accommodate this use case?
The text was updated successfully, but these errors were encountered: