From a950d3532e8481391235c9b8b8f442a9ef2fec7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A9veloppeur=20=C3=A9gar=C3=A9?= Date: Tue, 9 Jun 2015 11:21:43 +0200 Subject: [PATCH] Add retry to bundle install In case of network mistake --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 027b868..1523e9d 100755 --- a/scripts/install +++ b/scripts/install @@ -96,7 +96,7 @@ sudo su - diaspora -c "env REALLY_GEM_UPDATE_SYSTEM=1 gem update --system --no-u sudo su - diaspora -c "gem install bundler" # construct diaspora app -sudo su - diaspora -c "RAILS_ENV=production bundle install --without test development" +sudo su - diaspora -c "RAILS_ENV=production bundle install --without test development --retry 5" sudo su - diaspora -c "RAILS_ENV=production bundle exec rake db:create db:schema:load" sudo su - diaspora -c "RAILS_ENV=production bundle exec rake assets:precompile"