From 85cdb9bbd79bcc653d1d2c8df5faefe736d3d2d1 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Thu, 16 Jan 2020 21:52:02 +0500 Subject: [PATCH] Fix CI --- script/setup | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/script/setup b/script/setup index 1b53af4..41023a8 100755 --- a/script/setup +++ b/script/setup @@ -31,25 +31,25 @@ FileUtils.chdir APP_ROOT do system! "gem install bundler -v '~> 2.0'" puts '== Installing gems ==' - system 'bin/bundle check' or system! 'bin/bundle install' + system 'bundle check' or system! 'bundle install' puts '== Install JavaScript dependencies ==' - system! 'bin/rake yarn:install' + system! 'bundle exec rake yarn:install' if initial puts '== Preparing database ==' - system! 'bin/rails db:setup' + system! 'bundle exec rails db:setup' elsif travis puts '== Preparing database ==' system! "psql -U #{postgres_user} -c 'CREATE DATABASE #{postgres_db};'" else puts '== Updating database ==' - system! 'bin/rails db:migrate' + system! 'bundle exec rails db:migrate' end puts '== Removing old logs and tempfiles ==' - system! 'bin/rails log:clear tmp:clear' + system! 'bundle exec rails log:clear tmp:clear' puts '== Restarting application server ==' - system! 'bin/rails restart' + system! 'bundle exec rails restart' end