aboutsummaryrefslogtreecommitdiffstats
path: root/script/rails-post-deploy
diff options
context:
space:
mode:
Diffstat (limited to 'script/rails-post-deploy')
-rwxr-xr-xscript/rails-post-deploy20
1 files changed, 19 insertions, 1 deletions
diff --git a/script/rails-post-deploy b/script/rails-post-deploy
index d9e9bb3f1..575b995f9 100755
--- a/script/rails-post-deploy
+++ b/script/rails-post-deploy
@@ -74,12 +74,30 @@ then
echo "ENV['RAILS_ENV'] ||= 'production'" > config/rails_env.rb
fi
+if [ "$OPTION_STAGING_SITE" = "0" ]
+then
+ bundle exec bundle install --without development:test --deployment
+else
+ bundle exec bundle install
+fi
+
+if [ -n "$OPTION_THEME_URLS" ]
+then
+ for THEME in "${OPTION_THEME_URLS[@]}"
+ do
+ echo "Installing $THEME..."
+ script/plugin install --force $THEME
+ done
+fi
+
+# Old version of the above, for backwards compatibility
if [ -n "$OPTION_THEME_URL" ]
then
+ echo "Installing $OPTION_THEME_URL using deprecated THEME_URL..."
script/plugin install --force $OPTION_THEME_URL
fi
# upgrade database
-rake db:migrate #--trace
+bundle exec rake db:migrate #--trace