From 577bf1aea1b4b6f9cbdbe8228bd4298e768ab12a Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Fri, 31 Mar 2017 22:46:21 +0200 Subject: [PATCH] Fix deploy, yo. --- config/deploy.rb | 2 +- lib/capistrano/tasks/i18n.rake | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/deploy.rb b/config/deploy.rb index d7880c47..d5c75cd1 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -41,7 +41,7 @@ set :rollbar_env, Proc.new { fetch :stage } set :rollbar_role, Proc.new { :app } # Create JS i18n files after precompiling assets -after 'assets:precompile', 'i18n:js_assets' +after 'deploy:assets:precompile', 'deploy:i18n_assets' # Restart the app server after successful deploy after 'deploy:cleanup', 'deploy:restart' diff --git a/lib/capistrano/tasks/i18n.rake b/lib/capistrano/tasks/i18n.rake index e47eb768..81225d2a 100644 --- a/lib/capistrano/tasks/i18n.rake +++ b/lib/capistrano/tasks/i18n.rake @@ -1,5 +1,5 @@ -namespace :i18n do - task :js_assets do +namespace :deploy do + task :i18n_js do within release_path do with rails_env: fetch(:rails_env), rails_groups: fetch(:rails_assets_groups) do execute :rake, "i18n:js:export"