Sha256: 94e65443461b81825ab69623b0152b018eed3d3d9d787561ea7f2333c0468803

Contents?: true

Size: 676 Bytes

Versions: 272

Compression:

Stored size: 676 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== 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

272 entries across 180 versions & 13 rubygems

Version Path
multi_session-1.1.3 spec/dummy/bin/update
cypress-on-rails-1.2.1 spec/integrations/rails_5_2/bin/update
multi_session-1.1.2 spec/dummy/bin/update
cypress-on-rails-1.2.0 spec/integrations/rails_5_2/bin/update
multi_session-1.1.1 spec/dummy/bin/update
multi_session-1.1.0 spec/dummy/bin/update
cypress-on-rails-1.1.1 spec/integrations/rails_5_2/bin/update
cypress-on-rails-1.1.0 spec/integrations/rails_5_2/bin/update
cypress-on-rails-1.0.1 spec/integrations/rails_5_2/bin/update
cypress-on-rails-1.0.0 spec/integrations/rails_5_2/bin/update
cypress-on-rails-1.0.0.beta2 spec/integrations/rails_5_2/bin/update
chatwork_webhook_verify-0.1.0 spec/dummy/bin/update