Skip to content

Instantly share code, notes, and snippets.

@invalidusrname
Last active December 17, 2015 04:18
Show Gist options
  • Save invalidusrname/5549241 to your computer and use it in GitHub Desktop.
Save invalidusrname/5549241 to your computer and use it in GitHub Desktop.
role :app, "app4"
role :web, "proxy"
after "deploy:assets:precompile", "assets:copy_manifest_file"
namespace :assets do
task :copy_manifest_file, :roles => :web, :except => { :no_release => true } do
app_servers = find_servers :roles => :app
app_servers.each do |app_server| do
run `scp #{release_path}/public/manifests.yml #{user}@#{app_server}:#{release_path}/public/`
end
end
end
@invalidusrname
Copy link
Author

What you know about asset compilation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment