From e7938406d918ce362642c372186cd4c43801dc29 Mon Sep 17 00:00:00 2001 From: Seb Bacon Date: Wed, 22 Feb 2012 13:48:11 +0000 Subject: cause the post-deploy process to run "bundler install" --- script/rails-post-deploy | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'script/rails-post-deploy') diff --git a/script/rails-post-deploy b/script/rails-post-deploy index d9e9bb3f1..4df37db34 100755 --- a/script/rails-post-deploy +++ b/script/rails-post-deploy @@ -78,7 +78,12 @@ if [ -n "$OPTION_THEME_URL" ] then script/plugin install --force $OPTION_THEME_URL fi - +if [ "$OPTION_STAGING_SITE" = "0" ] +then + bundle install --deployment +else + bundle install +fi # upgrade database rake db:migrate #--trace -- cgit v1.2.3 From 8acea24f98268fbb9b73b66b9e98a1788a3b30ac Mon Sep 17 00:00:00 2001 From: Seb Bacon Date: Mon, 12 Mar 2012 12:33:12 +0000 Subject: Do 'bundler' stuff in correct order --- script/rails-post-deploy | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'script/rails-post-deploy') diff --git a/script/rails-post-deploy b/script/rails-post-deploy index 4df37db34..2bf098c5d 100755 --- a/script/rails-post-deploy +++ b/script/rails-post-deploy @@ -74,16 +74,18 @@ then echo "ENV['RAILS_ENV'] ||= 'production'" > config/rails_env.rb fi -if [ -n "$OPTION_THEME_URL" ] -then - script/plugin install --force $OPTION_THEME_URL -fi if [ "$OPTION_STAGING_SITE" = "0" ] then bundle install --deployment else bundle install fi + +if [ -n "$OPTION_THEME_URL" ] +then + script/plugin install --force $OPTION_THEME_URL +fi + # upgrade database rake db:migrate #--trace -- cgit v1.2.3