Skip to content

Instantly share code, notes, and snippets.

@hughevans
Created January 21, 2013 21:17
Show Gist options
  • Select an option

  • Save hughevans/4589507 to your computer and use it in GitHub Desktop.

Select an option

Save hughevans/4589507 to your computer and use it in GitHub Desktop.
before 'deploy:symlink', 'deploy_assets'
desc 'Compile and upload the precompiled assets'
task :deploy_assets, :except => { :no_release => true } do
run_locally('bundle exec rake assets:clean && bundle exec rake assets:precompile')
upload('public/assets', "#{release_path}/public/assets", :via => :scp, :recursive => true)
upload('public/404.html', "#{release_path}/public/404.html", :via => :scp)
upload('public/500.html', "#{release_path}/public/500.html", :via => :scp)
end
@hughevans
Copy link
Author

Replaces load 'deploy/assets'

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