diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2018-04-12 21:45:17 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-04-12 14:45:17 +0200 |
commit | 50529cbceb84e611bca497624a7a4c38113e5135 (patch) | |
tree | 753e4e8975f0404717e451fceb64d341f19435fc /bin/update | |
parent | 8e88a18316d45a459a31d67487bccc247592d187 (diff) |
Upgrade Rails to version 5.2.0 (#5898)
Diffstat (limited to 'bin/update')
-rwxr-xr-x | bin/update | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/update b/bin/update index a8e4462f2..6d73559a3 100755 --- a/bin/update +++ b/bin/update @@ -1,10 +1,9 @@ #!/usr/bin/env ruby -require 'pathname' require 'fileutils' include FileUtils # path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) +APP_ROOT = File.expand_path('..', __dir__) def system!(*args) system(*args) || abort("\n== Command #{args} failed ==") @@ -18,6 +17,9 @@ chdir APP_ROOT do system! 'gem install bundler --conservative' system('bundle check') || system!('bundle install') + # Install JavaScript dependencies if using Yarn + system('bin/yarn') + puts "\n== Updating database ==" system! 'bin/rails db:migrate' |