aboutsummaryrefslogtreecommitdiffstats
path: root/script/rails-deploy-before-down
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-05-15 16:09:29 +0100
committerLouise Crow <louise.crow@gmail.com>2014-05-15 16:09:29 +0100
commit26348ce676f7ebbabcc535b2ecf00f99f8fe85c0 (patch)
tree6034dd656a0f9af152f24d6c491b5e61a7190a7d /script/rails-deploy-before-down
parent851ef575cf3c55a3bb194381497b958c2a3ebf1a (diff)
parentb3fa23047bf96bd6a08273c9491ac1ee3b4a3f80 (diff)
Merge branch 'release/0.18' into wdtk
Diffstat (limited to 'script/rails-deploy-before-down')
-rwxr-xr-xscript/rails-deploy-before-down20
1 files changed, 15 insertions, 5 deletions
diff --git a/script/rails-deploy-before-down b/script/rails-deploy-before-down
index ad1049e44..42284b00d 100755
--- a/script/rails-deploy-before-down
+++ b/script/rails-deploy-before-down
@@ -123,20 +123,30 @@ END
echo "ENV['RAILS_ENV'] ||= 'production'" > config/rails_env.rb
fi
-bundle_install_options=""
+BUNDLE_PATH="${OPTION_BUNDLE_PATH:-vendor/bundle}"
+
+bundle_install_options="--path $BUNDLE_PATH"
+
if [ "$OPTION_STAGING_SITE" = "0" ]
then
- bundle_install_options="--without development:test --deployment"
+ bundle_install_options="$bundle_install_options --without development debug test --deployment"
fi
if [ "$OPTION_STAGING_SITE" = "1" ]
then
- bundle_install_options="--path vendor/bundle"
+ 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
+
+if [ ! "$TRAVIS" = "true" ]
+then
+ echo "Running bundle install with options: $bundle_install_options"
+ bundle install $bundle_install_options
fi
-bundle install $bundle_install_options
bundle exec rake submodules:check