Sha256: 0596b88b5d9b14cdfb8b89585d0256a59f5f18f4ddcb1605bf4dba94c3b7d428

Contents?: true

Size: 772 Bytes

Versions: 52

Compression:

Stored size: 772 Bytes

Contents

#!/usr/bin/env ruby
require 'fileutils'

# path to your application root.
APP_ROOT = File.expand_path('..', __dir__)

def system!(*args)
  system(*args) || abort("\n== Command #{args} failed ==")
end

FileUtils.chdir APP_ROOT do
  # This script is a way to setup or update your development environment automatically.
  # This script is idempotent, so that you can run it at anytime and get an expectable outcome.
  # 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

52 entries across 52 versions & 9 rubygems

Version Path
workarea-sezzle-1.0.6 test/dummy/bin/setup
workarea-sezzle-1.0.5 test/dummy/bin/setup
workarea-sezzle-1.0.4 test/dummy/bin/setup
workarea-sezzle-1.0.3 test/dummy/bin/setup
workarea-sezzle-1.0.2 test/dummy/bin/setup
workarea-sezzle-1.0.1 test/dummy/bin/setup
workarea-product_content-0.0.3.pre test/dummy/bin/setup
workarea-product_content-0.0.2.pre test/dummy/bin/setup
workarea-product_content-0.0.1.pre test/dummy/bin/setup
workarea-product_additional_details-2.0.37 test/dummy/bin/setup
workarea-referral_rock-1.0.20 test/dummy/bin/setup
workarea-referral_rock-1.0.2 test/dummy/bin/setup
workarea-product_additional_details-2.0.36 test/dummy/bin/setup
workarea-product_additional_details-2.0.35 test/dummy/bin/setup
workarea-product_additional_details-2.0.34 test/dummy/bin/setup
workarea-product_additional_details-2.0.33 test/dummy/bin/setup
workarea-sezzle-1.0.0 test/dummy/bin/setup
workarea-product_additional_details-2.0.32 test/dummy/bin/setup
workarea-product_additional_details-2.0.31 test/dummy/bin/setup
workarea-product_additional_details-2.0.3 test/dummy/bin/setup