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
cypress-on-rails-1.2.1 spec/integrations/rails_5_2/bin/setup
multi_session-1.1.2 spec/dummy/bin/setup
cypress-on-rails-1.2.0 spec/integrations/rails_5_2/bin/setup
multi_session-1.1.1 spec/dummy/bin/setup
multi_session-1.1.0 spec/dummy/bin/setup
cypress-on-rails-1.1.1 spec/integrations/rails_5_2/bin/setup
cypress-on-rails-1.1.0 spec/integrations/rails_5_2/bin/setup
cypress-on-rails-1.0.1 spec/integrations/rails_5_2/bin/setup
cypress-on-rails-1.0.0 spec/integrations/rails_5_2/bin/setup
cypress-on-rails-1.0.0.beta2 spec/integrations/rails_5_2/bin/setup
chatwork_webhook_verify-0.1.0 spec/dummy/bin/setup