rails: Error on asset_manifest_backup

Commit bfd01c9 removed the .json suffix from the assets_manifest_backup. This produces an error when deploying on my Ubuntu environment. Suggest changing assets_manifest_backup to assets_manifest.backup

DEBUG [7813d7de] Command: cd /home/deployer/discourse-production/releases/20131115183147 && ( RAILS_ENV=production cp /home/deployer/discourse-production/releases/20131115183147/public/assets/manifest* /home/deployer/discourse-production/releases/20131115183147/assets_manifest_backup ) DEBUG [7813d7de] cp: DEBUG [7813d7de] target `/home/deployer/discourse-production/releases/20131115183147/assets_manifest_backup’ is not a directory

About this issue

  • Original URL
  • State: closed
  • Created 11 years ago
  • Comments: 19 (4 by maintainers)

Commits related to this issue

Most upvoted comments

Doubling that. Adding the thing to the deploy.rb is a quick fix for that.

Rake::Task['deploy:assets:backup_manifest'].clear_actions
namespace :deploy do
  namespace :assets do
    task :backup_manifest do
      on roles(fetch(:assets_roles)) do
        within release_path do
          execute :cp,
                  release_path.join('public', fetch(:assets_prefix), '.sprockets-manifest*'),
                  release_path.join('assets_manifest_backup')
        end
      end
    end
  end
end