Fix deploy
This commit is contained in:
parent
771821356f
commit
a6f250b294
|
@ -41,7 +41,7 @@ set :rollbar_env, Proc.new { fetch :stage }
|
||||||
set :rollbar_role, Proc.new { :app }
|
set :rollbar_role, Proc.new { :app }
|
||||||
|
|
||||||
# Create JS i18n files after precompiling assets
|
# 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
|
# Restart the app server after successful deploy
|
||||||
after 'deploy:cleanup', 'deploy:restart'
|
after 'deploy:cleanup', 'deploy:restart'
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
namespace :deploy do
|
namespace :deploy do
|
||||||
task :i18n_js do
|
task :i18n_js do
|
||||||
within release_path do
|
on roles(:all) do
|
||||||
with rails_env: fetch(:rails_env), rails_groups: fetch(:rails_assets_groups) do
|
within release_path do
|
||||||
execute :rake, "i18n:js:export"
|
with rails_env: fetch(:rails_env), rails_groups: fetch(:rails_assets_groups) do
|
||||||
|
execute :rake, "i18n:js:export"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue