Sha256: 2ccead213706d3037d41e5ba59ebf0c33f8d6c42e147cd20bb3a5a988dd134bd

Contents?: true

Size: 659 Bytes

Versions: 271

Compression:

Stored size: 659 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 starting point to setup your application.
  # Add necessary setup 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

271 entries across 179 versions & 13 rubygems

Version Path
chatwork_webhook_verify-1.0.0 spec/dummy/bin/setup
cypress-on-rails-1.17.0 specs_e2e/rails_5_2/bin/setup
cypress-on-rails-1.16.0 specs_e2e/rails_5_2/bin/setup
cypress-on-rails-1.15.1 specs_e2e/rails_5_2/bin/setup
cypress-on-rails-1.15.0 specs_e2e/rails_5_2/bin/setup
cypress-on-rails-1.14.0 specs_e2e/rails_5_2/bin/setup
appmap-0.83.4 spec/fixtures/rails5_users_app/bin/setup
appmap-0.83.4 spec/fixtures/rails6_users_app/bin/setup
cypress-on-rails-1.13.1 specs_e2e/rails_5_2/bin/setup
cypress-on-rails-1.13.0 specs_e2e/rails_5_2/bin/setup
appmap-0.83.3 spec/fixtures/rails5_users_app/bin/setup
appmap-0.83.3 spec/fixtures/rails6_users_app/bin/setup
appmap-0.83.2 spec/fixtures/rails5_users_app/bin/setup
appmap-0.83.2 spec/fixtures/rails6_users_app/bin/setup
appmap-0.83.1 spec/fixtures/rails6_users_app/bin/setup
appmap-0.83.1 spec/fixtures/rails5_users_app/bin/setup
appmap-0.83.0 spec/fixtures/rails6_users_app/bin/setup
appmap-0.83.0 spec/fixtures/rails5_users_app/bin/setup
appmap-0.82.0 spec/fixtures/rails6_users_app/bin/setup
appmap-0.82.0 spec/fixtures/rails5_users_app/bin/setup