Sha256: f58749ae17b859ee11dd0befdd3b92f37c326db9f76bb8bcf607d8f87c8f8793
Contents?: true
Size: 690 Bytes
Versions: 22
Compression:
Stored size: 690 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true 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
22 entries across 22 versions & 2 rubygems