From: Sam Date: Tue, 18 Feb 2014 04:40:59 +0000 (+1100) Subject: always update bundler during bootstrap X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e64b0a0b9c933491c1d9d8faa094624ed2619451;p=discourse_docker.git always update bundler during bootstrap cache gems --- diff --git a/templates/web.template.yml b/templates/web.template.yml index d8f47ae..7a85200 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -119,8 +119,13 @@ run: - exec: cd: $home cmd: + # ensure we are on latest bundler + - gem update bundler + - mkdir -p /shared/vendor_bundle + - cp -fr /shared/vendor_bundle/* vendor/bundle || echo "can not copy" - chown -R discourse $home - sudo -E -u discourse bundle install --deployment --verbose --without test --without development + - cp -fr vendor/bundle/* /shared/vendor_bundle - sudo -E -u discourse bundle exec rake db:migrate - sudo -E -u discourse bundle exec rake assets:precompile