Sha256: c87ed0cad2773c53afd6f5eb3c955b6e7ffbee40231bab4313ae349f45883f49

Contents?: true

Size: 786 Bytes

Versions: 30

Compression:

Stored size: 786 Bytes

Contents

#!/usr/bin/env ruby.exe
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') || 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

30 entries across 30 versions & 4 rubygems

Version Path
cosmos-4.2.2 lib/cosmos/dart/bin/update
cosmos-4.2.1-java lib/cosmos/dart/bin/update
cosmos-4.2.1 lib/cosmos/dart/bin/update
cosmos-4.2.0-java lib/cosmos/dart/bin/update
cosmos-4.2.0 lib/cosmos/dart/bin/update
sandboxy-2.0.0 examples/rails_example/bin/update
omniauth-slooob-1.0.0 examples/rails_example/bin/update
sandboxy-1.1.1 examples/rails_example/bin/update
sandboxy-1.1.0 examples/rails_example/bin/update
sandboxy-1.0.0 examples/rails_example/bin/update