KABBOUCHI / adonisjs-scheduler

Task scheduler for AdonisJS
MIT License
44 stars 0 forks source link

Launch adonisjs-scheduler in production #2

Closed arnauddoub closed 1 year ago

arnauddoub commented 1 year ago

How do you start the cronjob with pm2 in production?

KABBOUCHI commented 1 year ago

Initial pm2 setup

pm2 start "node ace scheduler:run" --name scheduler

After each new deployment

pm2 restart scheduler
arnauddoub commented 1 year ago

Ok very simple