Skip to content

Commit

Permalink
Merge pull request #382 from sozialhelden/feature/infrastructure-rebu…
Browse files Browse the repository at this point in the history
…ild/manifests-to-apps

Copy manifest to apps
  • Loading branch information
Xylakant authored Sep 7, 2016
2 parents 0e42f21 + 23ef494 commit 2f4f6d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@
execute :mv, tmp_current_path, current_path.parent
end

on roles(:app) do
# this needs to be done outside run_locally in order for host to exist
remote_dir = "#{host.user}@#{host.hostname}:#{release_path}/public/assets/"
execute "mkdir -p #{release_path}/public/assets/"
run_locally { execute "rsync -av --delete #{local_dir}/.sprockets-manifest-* #{remote_dir}" }
end

# clean up
run_locally { execute "rm -rf #{local_dir}" }
end
Expand Down
2 changes: 1 addition & 1 deletion config/environments/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
config.serve_static_assets = false

# Enable serving of images, stylesheets, and javascripts from an asset server
config.action_controller.asset_host = 'staging.wheelmap.org'
config.action_controller.asset_host = 'asset%d.staging.wheelmap.org'

# Disable delivery errors, bad email addresses will be ignored
# config.action_mailer.raise_delivery_errors = false
Expand Down

0 comments on commit 2f4f6d8

Please sign in to comment.