Created
January 21, 2013 21:17
-
-
Save hughevans/4589507 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Replaces
load 'deploy/assets'