Fix deploy

This commit is contained in:
Georg Gadinger 2017-03-31 22:53:40 +02:00
parent 771821356f
commit a6f250b294
2 changed files with 6 additions and 4 deletions

View File

@ -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 'deploy:assets:precompile', 'deploy:i18n_assets'
after 'deploy:assets:precompile', 'deploy:i18n_js'
# Restart the app server after successful deploy
after 'deploy:cleanup', 'deploy:restart'

View File

@ -1,5 +1,6 @@
namespace :deploy do
task :i18n_js do
on roles(:all) do
within release_path do
with rails_env: fetch(:rails_env), rails_groups: fetch(:rails_assets_groups) do
execute :rake, "i18n:js:export"
@ -7,3 +8,4 @@ namespace :deploy do
end
end
end
end