diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-03-12 12:33:12 +0000 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-03-12 12:33:12 +0000 |
commit | 8acea24f98268fbb9b73b66b9e98a1788a3b30ac (patch) | |
tree | b8e5b69cae48d1bf35fd73a19858db3e8301467c /script | |
parent | a8476f306f7ccb185aa0d81aa87a0750671fa8c4 (diff) |
Do 'bundler' stuff in correct order
Diffstat (limited to 'script')
-rwxr-xr-x | script/rails-post-deploy | 10 |
1 files changed, 6 insertions, 4 deletions
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 |