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

How to listen in linux with PM2? #26

Closed
wemersonrv opened this issue Nov 27, 2018 · 7 comments
Closed

How to listen in linux with PM2? #26

wemersonrv opened this issue Nov 27, 2018 · 7 comments

Comments

@wemersonrv
Copy link

Hi. Congrats!!! Great package!!

How can i configure it to listen in a linux server with PM2 ?

@wemersonrv
Copy link
Author

wemersonrv commented Dec 7, 2018

Hi. I am unable to go production because cannot automatically starts the jobs in PM2. What's wrong ?

If run pm2 start adonis kue:listen inside my project folder, it works... but if i try to use it automatically in a PM2 process file to make it automatic, not works.

@vigikaran
Copy link

https://github.com/ahmadarif/adonis4
Refer this, might helpfull

@MorenoMdz
Copy link

MorenoMdz commented Apr 22, 2019

Thanks @vigikaran, I need something that allows me to run pm2 with adonis kue:listen as well if possible, the conf you passed may be a solution otherwise.

@ebnersilva
Copy link

Any updates on this?

@muscle-rhnkyr
Copy link

Did you guys try on app/kernel.js :

const Kue = use('Kue');
Kue.listen();

@MaissonTi
Copy link

@ebnersilva use the command pm2 start ./ace -- kue:listen

@rhadamez
Copy link

rhadamez commented Aug 5, 2020

The @muscle-rhnkyr ideia almost solved my problem, it only breaks my github actions. Don't know why.

The command pm2 start ./ace -- kue:listen return "[PM2][ERROR] Script not found" (I'm in the right folder). The solution works, but it breaks my CI, dont know why. Any solution?

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

7 participants