2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: AGPL-3.0
10 # path to your application root.
11 APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
14 system(*args) || abort("\n== Command #{args} failed ==")
18 # This script is a way to update your development environment automatically.
19 # Add necessary update steps to this file.
21 puts '== Installing dependencies =='
22 system! 'gem install bundler --conservative'
23 system('bundle check') || system!('bundle install')
25 puts "\n== Updating database =="
26 system! 'bin/rails db:migrate'
28 puts "\n== Removing old logs and tempfiles =="
29 system! 'bin/rails log:clear tmp:clear'
31 puts "\n== Restarting application server =="
32 system! 'bin/rails restart'