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

Version Path
my_api_client-0.24.0 rails_app/rails_5.2/bin/setup
my_api_client-0.23.0 rails_app/rails_5.2/bin/setup
my_api_client-0.22.0 rails_app/rails_5.2/bin/setup
redis_web_manager-0.4.0 spec/dummy/bin/setup
redis_web_manager-0.3.9 spec/dummy/bin/setup
my_api_client-0.21.0 rails_app/rails_5.2/bin/setup
my_api_client-0.20.0 rails_app/rails_5.2/bin/setup
redis_web_manager-0.3.8 spec/dummy/bin/setup
redis_web_manager-0.3.6 spec/dummy/bin/setup
redis_web_manager-0.3.5 spec/dummy/bin/setup
my_api_client-0.19.0 rails_app/rails_5.2/bin/setup
my_api_client-0.18.0 rails_app/rails_5.2/bin/setup
my_api_client-0.17.0 rails_app/rails_5.2/bin/setup
redis_web_manager-0.3.4 spec/dummy/bin/setup
redis_web_manager-0.3.3 spec/dummy/bin/setup
redis_web_manager-0.3.2 spec/dummy/bin/setup
redis_web_manager-0.3.1 spec/dummy/bin/setup
redis_web_manager-0.3.0 spec/dummy/bin/setup
redis_web_manager-0.2.1 spec/dummy/bin/setup
redis_web_manager-0.2.0 spec/dummy/bin/setup