Sha256: 63c1710a9974d6e97bd4476dc72929c23b12f69b997e08bf1bd92641aefca886

Contents?: true

Size: 780 Bytes

Versions: 28

Compression:

Stored size: 780 Bytes

Contents

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

# path to your application root.
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)

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' or 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

28 entries across 22 versions & 6 rubygems

Version Path
remotipart-1.4.4 spec/dummy_app/bin/update
remotipart-1.4.3 spec/dummy_app/bin/update
happy_seed-0.0.21 spec/dummy/bin/update
babel-schmooze-sprockets-0.1.3 examples/myapp/bin/update
babel-schmooze-sprockets-0.1.2 examples/myapp/bin/update
babel-schmooze-sprockets-0.1.1 examples/myapp/bin/update
babel-schmooze-sprockets-0.1.0 examples/myapp/bin/update
amd-0.1.5 test/dummy/bin/update
amd-0.1.4 test/dummy/bin/update
amd-0.1.3 test/dummy/bin/update
amd-0.1.2 test/dummy/bin/update
amd-0.1.1 test/dummy/bin/update
babel-schmooze-sprockets-0.1.0.alpha.3 examples/myapp/bin/update
babel-schmooze-sprockets-0.1.0.alpha.2 examples/myapp/bin/update
jobshop-0.0.2.2 spec/dummy-5.0.0.beta3/bin/update
jobshop-0.0.2.1 spec/dummy-5.0.0.beta3/bin/update
bouquet-0.2.2 store/spec/dummy/bin/update
bouquet-0.2.2 gate/spec/dummy/bin/update
bouquet-0.2.2 core/spec/dummy/bin/update
bouquet-0.2.1 store/spec/dummy/bin/update