Sha256: b9e5dad164544491f6846a9f114c6d13473e254ff40ff312b92a669e8851c03a
Contents?: true
Size: 610 Bytes
Versions: 3
Compression:
Stored size: 610 Bytes
Contents
#!/bin/sh include FileUtils require 'pathname' require 'fileutils' APP_ROOT = Pathname.new File.expand_path('..', __dir__) def system!(*args) system(*args) || abort("\n== Command #{args} failed ==") end chdir APP_ROOT do puts '== Installing dependencies ==' system! 'gem install bundler --conservative' system('bundle check') || system!('bundle install') puts "\n== Updating database ==" system! 'bin/rails db:migrate' puts "\n== Removing old logs and tempfiles ==" system! 'bin/rails log:clear tmp:clear' puts "\n== Restarting application server ==" system! 'bin/rails restart' end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
underlay-2.0 | templates/bin_update |
underlay-1.52.1 | templates/bin_update |
underlay-1.50.1 | templates/bin_update |