简体   繁体   中英

Delayed_job is not working correctly

I implemented the delayed job & it is processing fine but it is generating the mails in development.log not in production.log.

Also no mail is actually sent, it's just generating in development log. After processing I have no job in delayed job table also.

I also used RAILS_ENV=production rake jobs:work but still the mail is in development log and is not actually sent; I am using mail server on Ubuntu to send mails.

I have noticed that rake jobs:work by default uses the development log don't know is it same for the production server too?

If somebody know the problem then please answer ASAP because my application has been stuck due to this on the production server and lots of mails are just going in development log and not actually going to the end user.

This may be obvious, but in your config/production.rb, have you set

    config.action_mailer.delivery_method = :smtp

It's possible you set the delivery method in config/development.rb, but forgot to do the same in the production environment. Please let me know so I can help further!

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