开发者

Delayed_job is not working correctly

开发者 https://www.devze.com 2023-02-22 22:33 出处:网络
I implemented the delayed job & it is processing fine but it is generating the mails in development.log not in production.log.

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 d开发者_运维百科evelopment 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!

0

精彩评论

暂无评论...
验证码 换一张
取 消