Sha256: e6444492281a6d1fd8e5139d65f6b9489b2fc02a9c99f497cb9689a9c0bc726f

Contents?: true

Size: 697 Bytes

Versions: 46

Compression:

Stored size: 697 Bytes

Contents

#!/usr/bin/env ruby
require 'pathname'
require 'fileutils'
include FileUtils

# path to your application root.
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)

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

46 entries across 46 versions & 2 rubygems

Version Path
bobot-5.0.4 spec/dummy/bin/setup
bobot-5.0.3 spec/dummy/bin/setup
bobot-5.0.2 spec/dummy/bin/setup
bobot-5.0.1 spec/dummy/bin/setup
bobot-5.0.0 spec/dummy/bin/setup
bobot-4.15.0 spec/dummy/bin/setup
bobot-4.14.0 spec/dummy/bin/setup
bobot-4.13.1 spec/dummy/bin/setup
bobot-4.13.0 spec/dummy/bin/setup
bobot-4.11.0 spec/dummy/bin/setup
bobot-4.10.0 spec/dummy/bin/setup
bobot-4.9.0 spec/dummy/bin/setup
bobot-4.8.0 spec/dummy/bin/setup
bobot-4.7.0 spec/dummy/bin/setup
bobot-4.6.0 spec/dummy/bin/setup
bobot-4.5.0 spec/dummy/bin/setup
bobot-4.4.1 spec/dummy/bin/setup
bobot-4.4.0 spec/dummy/bin/setup
bobot-4.3.1 spec/dummy/bin/setup
bobot-4.3.0 spec/dummy/bin/setup