

ActionMailer, Vlad and Rake Remote Task Issues
source link: https://fuzzyblog.io/blog/actionmailer/2014/09/05/actionmailer-vlad-and-rake-remote-task-issues.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

ActionMailer, Vlad and Rake Remote Task Issues
Sep 5, 2014
We recently had a situation where adding a UserMailer to a new Rails 4 app (really a tiny one) led to conflicts with "domain" and Rake Remote Task in Production. The issue turned out to be a problem tied to Vlad. Seattle RB argued for "Turn off autoload for vlad" and that it was really a bundler issue. Unfortunately, as is all to common, they did not say how to do that. Happily there is an easy work around – run Vlad only on development boxes – put it in a development group in gem file so you have:
Before:
gem 'vlad' gem 'vlad-git' gem 'vlad-extras'
After
group :development do gem 'rake-remote_task'#, '2.2.2', :path => "vendor/gems/rake-remote_task-2.2.2" gem 'vlad', '2.6.3', :path => "vendor/gems/vlad-2.6.3/" gem 'vlad-git' gem 'vlad-extras', :path => "vendor/gems/vlad-extras-0.7.3" end
By keeping vlad and rake-remote-task OFF production boxes then you've not fixed this problem (its still there) but vlad doesn't need to be on production boxes. Its raison de etre so to speak is to run on development and move stuff to production.
Props to Dv for dealing with this and Jared for coming up with the ultimate solution. Me? I'm just the writer…
Posted In: #actionmailer #ruby #vlad
Recommend
-
113
-
7
Using Rake and Git to find out what I did yesterday November 24, 2010 At our daily stand-ups we have to answer the question "What did you do yesterda...
-
13
Sending Threaded Emails Using Rails ActionMailer
-
11
Faster Builds with NUnit-3 and Rake Multitask
-
9
Rake with namespaces and default tasks Posted: 2011-04-04 - Last updated: 2019-06-05 Tagged
-
9
Rake task to sync your assets to Amazon S3/Cloudfront Posted: 2011-01-01 - Last updated: 2019-06-05 Tagged...
-
7
How I replaced Baremetrics and ChartMogul with RakeIn the early days of my business, I was a happy Baremetrics user. I was new to running a Software-as-a-Service (SaaS) business, I only had a handful of Stripe plans, and a...
-
9
Monitoring your application can be a difficult task if you’re just getting started with it. You need to know which metrics matter most and understand which ones you can combine into meaningful graphs. In the (not just holiday ⛄️) spiri...
-
10
0:00 / 1:35:23 ...
-
7
Nic Lin's Blog喜歡在地上滾的工程師rake task 的 scope 是全域的,如果在任意的 rake 檔案中定義了 method,表面上看起來只有執行到該 task 時會用,但其實是等於為 main:Object...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK