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