From effa1ff12e8d1bdf83a6b67270dadfb6ce86876f Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Fri, 25 Apr 2014 12:01:52 +0100 Subject: Use WAD to cache bundles to Amazon S3 https://github.com/Fingertips/WAD --- script/rails-deploy-before-down | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'script/rails-deploy-before-down') diff --git a/script/rails-deploy-before-down b/script/rails-deploy-before-down index c157a8624..a5f0d7af0 100755 --- a/script/rails-deploy-before-down +++ b/script/rails-deploy-before-down @@ -135,13 +135,18 @@ if [ "$OPTION_STAGING_SITE" = "1" ] then bundle_install_options="$bundle_install_options" fi + +# Use script/wad to install bundle when on Travis if [ "$TRAVIS" = "true" ] then - bundle_install_options="--without development develop --deployment" + script/wad fi -echo "Running bundle install with options: $bundle_install_options" -bundle install $bundle_install_options +if [ ! "$TRAVIS" = "true" ] +then + echo "Running bundle install with options: $bundle_install_options" + bundle install $bundle_install_options +fi bundle exec rake submodules:check -- cgit v1.2.3