Sha256: 983f48e8d781babe19ade3b51955647eb84890e5185909625636dc664d0dd64a

Contents?: true

Size: 696 Bytes

Versions: 7

Compression:

Stored size: 696 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

7 entries across 7 versions & 1 rubygems

Version Path
t2_airtime-0.6.0 spec/dummy/bin/setup
t2_airtime-0.5.2 spec/dummy/bin/setup
t2_airtime-0.5.1 spec/dummy/bin/setup
t2_airtime-0.5.0 spec/dummy/bin/setup
t2_airtime-0.4.1 spec/dummy/bin/setup
t2_airtime-0.4.0 spec/dummy/bin/setup
t2_airtime-0.3.1 spec/dummy/bin/setup