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.81.1 spec/fixtures/rails5_users_app/bin/setup
appmap-0.81.1 spec/fixtures/rails6_users_app/bin/setup
appmap-0.81.0 spec/fixtures/rails5_users_app/bin/setup
appmap-0.81.0 spec/fixtures/rails6_users_app/bin/setup
appmap-0.80.2 spec/fixtures/rails5_users_app/bin/setup
appmap-0.80.2 spec/fixtures/rails6_users_app/bin/setup
appmap-0.80.1 spec/fixtures/rails6_users_app/bin/setup
appmap-0.80.1 spec/fixtures/rails5_users_app/bin/setup
appmap-0.80.0 spec/fixtures/rails5_users_app/bin/setup
appmap-0.80.0 spec/fixtures/rails6_users_app/bin/setup
appmap-0.79.0 spec/fixtures/rails5_users_app/bin/setup
appmap-0.79.0 spec/fixtures/rails6_users_app/bin/setup
appmap-0.78.0 spec/fixtures/rails6_users_app/bin/setup
appmap-0.78.0 spec/fixtures/rails5_users_app/bin/setup
appmap-0.77.4 spec/fixtures/rails5_users_app/bin/setup
appmap-0.77.4 spec/fixtures/rails6_users_app/bin/setup
appmap-0.77.3 spec/fixtures/rails6_users_app/bin/setup
appmap-0.77.3 spec/fixtures/rails5_users_app/bin/setup
appmap-0.77.2 spec/fixtures/rails5_users_app/bin/setup
appmap-0.77.2 spec/fixtures/rails6_users_app/bin/setup