Sha256: 39d88a05c99dbf2ef66b83aa47575fb908ccdaf43f112570458b8e1ed5464842

Contents?: true

Size: 513 Bytes

Versions: 94

Compression:

Stored size: 513 Bytes

Contents

namespace :deploy do
  namespace :assets do
    
    desc "Copy Exception Pages from assests to public folder."
    task :copy_exceptions do
      on roles(:web) do
        within release_path do
          execute :sudo, :cp, "-f public/assets/404.html  public/"
          execute :sudo, :cp, "-f public/assets/422.html  public/"
          execute :sudo, :cp, "-f public/assets/500.html  public/"
        end
      end
    end
    
    after "deploy:compile_assets", "deploy:assets:copy_exceptions"
    
  end
end

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
magic_recipes_two-0.0.95 lib/capistrano/tasks/exception_pages.rake
magic_recipes_two-0.0.94 lib/capistrano/tasks/exception_pages.rake
magic_recipes_two-0.0.93 lib/capistrano/tasks/exception_pages.rake
magic_recipes_two-0.0.91 lib/capistrano/tasks/exception_pages.rake
magic_recipes_two-0.0.90 lib/capistrano/tasks/exception_pages.rake
magic_recipes_two-0.0.89 lib/capistrano/tasks/exception_pages.rake
magic_recipes_two-0.0.88 lib/capistrano/tasks/exception_pages.rake
magic_recipes_two-0.0.87 lib/capistrano/tasks/exception_pages.rake
magic_recipes_two-0.0.86 lib/capistrano/tasks/exception_pages.rake
magic_recipes_two-0.0.85 lib/capistrano/tasks/exception_pages.rake
magic_recipes_two-0.0.84 lib/capistrano/tasks/exception_pages.rake
magic_recipes_two-0.0.83 lib/capistrano/tasks/exception_pages.rake
magic_recipes_two-0.0.82 lib/capistrano/tasks/exception_pages.rake
magic_recipes_two-0.0.81 lib/capistrano/tasks/exception_pages.rake
magic_recipes_two-0.0.80 lib/capistrano/tasks/exception_pages.rake
magic_recipes_two-0.0.79 lib/capistrano/tasks/exception_pages.rake
magic_recipes_two-0.0.78 lib/capistrano/tasks/exception_pages.rake
magic_recipes_two-0.0.77 lib/capistrano/tasks/exception_pages.rake
magic_recipes_two-0.0.76 lib/capistrano/tasks/exception_pages.rake
magic_recipes_two-0.0.75 lib/capistrano/tasks/exception_pages.rake