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