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