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
appmap-0.37.0 spec/fixtures/rails_users_app/bin/setup
appmap-0.36.0 spec/fixtures/rails_users_app/bin/setup
appmap-0.35.2 spec/fixtures/rails_users_app/bin/setup
appmap-0.35.1 spec/fixtures/rails_users_app/bin/setup
appmap-0.35.0 spec/fixtures/rails_users_app/bin/setup
appmap-0.34.5 spec/fixtures/rails_users_app/bin/setup
appmap-0.34.4 spec/fixtures/rails_users_app/bin/setup
appmap-0.34.2 spec/fixtures/rails_users_app/bin/setup
appmap-0.34.1 spec/fixtures/rails_users_app/bin/setup
appmap-0.34.0 spec/fixtures/rails_users_app/bin/setup
appmap-0.33.0 spec/fixtures/rails_users_app/bin/setup
appmap-0.32.0 spec/fixtures/rails_users_app/bin/setup
cypress-on-rails-1.8.0 spec/integrations/rails_5_2/bin/setup
workarea-orderbot-1.0.2 test/dummy/bin/setup
appmap-0.31.0 spec/fixtures/rails_users_app/bin/setup
appmap-0.28.1 spec/fixtures/rails_users_app/bin/setup
cypress-on-rails-1.7.0 spec/integrations/rails_5_2/bin/setup
appmap-0.28.0 spec/fixtures/rails_users_app/bin/setup
appmap-0.27.0 spec/fixtures/rails_users_app/bin/setup
appmap-0.26.1 spec/fixtures/rails_users_app/bin/setup