asset pipeline

    Asset Pipeline in ActionMailer on a different host

    05 Jan 2015

    05 Jan 2015

    We have a rails project which sends email in sidekiq job, it's working well until it's deployed to production server, we found images in email are all not found.

    The problem is we have 2 servers on production, app and db, we precompile assets on app server but run sidekiq on db server, then we call image_tag in mailer view, it generates image path as /assets/user.png but app server doesn't recognize such asset path, it expects image path as /assets/user-b1dbf9eed0aec90667f9589d7e0264c3.png.

    Why ...

    Read More

    Tags