RomainLanz / adonis-bull-queue

Queue system based on BullMQ for AdonisJS
MIT License
147 stars 26 forks source link

How to use it on Cleavr.io #50

Closed rhnkyr closed 1 month ago

rhnkyr commented 4 months ago

Hi,

I added a deployment hook but not sure what to exec

node build/ace queue:listen or pm2 start build/ace queue:listen

any input appreciated. Thanks in advance.

anishghimire862 commented 4 months ago

Hello @rhnkyr,

We've already discussed this on Discord.

For future travelers, you can create a Process Monitor (https://docs.cleavr.io/process-monitors/) with the following command:

node /home/{{ user }}/{{ site }}/current/build/ace queue:listen

Please replace the placeholder {{ user }} with the actual server user your site is associated with, and {{ site }} with your domain name, such as example.com.

If possible, we should create a custom deployment hook (https://docs.cleavr.io/deployment-hooks/) to terminate/stop the service. The Process Monitor/Supervisor should be able to restart the service.