简体   繁体   中英

How to run “delayed_jobs” on DigitalOcean?

I've tried to find some tutorials/sources that could help me with that, but I was not very successful. Currently, when I run a method with a .delay functionality, the record is saved to the delayed_jobs database table, but it's not executed.

Any tips to make this functionality work on DigitalOcean server (Ubuntu, nginx)?

You need to start a job runner. Refer to the section RUNNING JOBS in the documentation.

https://github.com/collectiveidea/delayed_job

The basic command is

RAILS_ENV=production script/delayed_job start

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM