Sha256: 5f1b937131b56da466e2be08911c608a51d7d23152288591896a3526e09c8f43

Contents?: true

Size: 745 Bytes

Versions: 87

Compression:

Stored size: 745 Bytes

Contents

#!/usr/bin/env ruby
require 'fileutils'
include FileUtils

# path to your application root.
APP_ROOT = File.expand_path('..', __dir__)

def system!(*args)
  system(*args) || abort("\n== Command #{args} failed ==")
end

chdir APP_ROOT do
  # This script is a way to update your development environment automatically.
  # Add necessary update steps to this file.

  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

87 entries across 85 versions & 15 rubygems

Version Path
parklife-0.4.0 examples/rails/bin/update
parklife-0.3.0 examples/rails/bin/update
parklife-0.2.0 examples/rails/bin/update
anoubis-1.0.12 spec/dummy/bin/update
anoubis-1.0.11 spec/dummy/bin/update
anoubis-1.0.10 spec/dummy/bin/update
anoubis-1.0.8 spec/dummy/bin/update
anoubis-1.0.7 spec/dummy/bin/update
anoubis-1.0.1 spec/dummy/bin/update
anoubis-1.0.0 spec/dummy/bin/update
solidus_reports-1.0.0 spec/dummy/bin/update
yamls-0.2.2 example/rails5/bin/update
yamls-0.2.1 example/rails5/bin/update
yamls-0.2.0 example/rails5/bin/update
yamls-0.1.4 example/rails5/bin/update
yamls-0.1.3 example/rails5/bin/update
yamls-0.1.2 example/rails5/bin/update
lab_tech-0.1.9 spec/dummy/bin/update
ddtrace-0.51.1 integration/apps/rails-five/bin/update
ddtrace-0.51.0 integration/apps/rails-five/bin/update