Skip to content

Commit

Permalink
Fix Rails assets not getting precompiled on deploys from git.
Browse files Browse the repository at this point in the history
  • Loading branch information
GUI committed Dec 8, 2015
1 parent 71360cb commit c7c8b8a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions deploy/config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@
end
after :updated, :ember_permissions

task :compile_assets do
on roles(:app) do
within("#{release_path}/src/api-umbrella/web-app") do
with "RAILS_ENV" => fetch(:stage) do
execute :rake, "assets:precompile"
end
end
end
end
after :updated, :compile_assets

desc "Reload application"
task :reload do
on roles(:app), :in => :sequence, :wait => 5 do
Expand Down

0 comments on commit c7c8b8a

Please sign in to comment.