Sha256: 5b5cb2c9967636373171570590c28f116af642c6d89391c85c76b5a943cf26b8

Contents?: true

Size: 830 Bytes

Versions: 139

Compression:

Stored size: 830 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'pathname'

# path to your application root.
APP_ROOT = Pathname.new File.expand_path('..', __dir__)

Dir.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 || bundle install'

  # puts "\n== Copying sample files =="
  # unless File.exist?("config/database.yml")
  #   system "cp config/database.yml.sample config/database.yml"
  # end

  puts "\n== Preparing database =="
  system 'bin/rake db:setup'

  puts "\n== Removing old logs and tempfiles =="
  system 'rm -f log/*'
  system 'rm -rf tmp/cache'

  puts "\n== Restarting application server =="
  system 'touch tmp/restart.txt'
end

Version data entries

139 entries across 139 versions & 8 rubygems

Version Path
eac_rails_base0-0.69.0 lib/eac_rails_base0/app_generator/templates/bin/setup
eac_rails_base0-0.68.7 lib/eac_rails_base0/app_generator/templates/bin/setup
eac_rails_base0-0.68.6 lib/eac_rails_base0/app_generator/templates/bin/setup
eac_rails_base0-0.68.5 lib/eac_rails_base0/app_generator/templates/bin/setup
eac_rails_base0-0.68.4 lib/eac_rails_base0/app_generator/templates/bin/setup
eac_rails_base0-0.68.3 lib/eac_rails_base0/app_generator/templates/bin/setup
eac_rails_base0-0.68.2 lib/eac_rails_base0/app_generator/templates/bin/setup
eac_rails_base0-0.68.1 lib/eac_rails_base0/app_generator/templates/bin/setup
eac_rails_base0-0.68.0 lib/eac_rails_base0/app_generator/templates/bin/setup
eac_rails_base0-0.67.0 lib/eac_rails_base0/app_generator/templates/bin/setup
eac_rails_base0-0.66.0 lib/eac_rails_base0/app_generator/templates/bin/setup
eac_rails_base0-0.65.0 lib/eac_rails_base0/app_generator/templates/bin/setup
eac_rails_base0-0.64.0 lib/eac_rails_base0/app_generator/templates/bin/setup
eac_rails_base0-0.63.1 lib/eac_rails_base0/app_generator/templates/bin/setup
eac_rails_base0-0.63.0 lib/eac_rails_base0/app_generator/templates/bin/setup
eac_rails_base0-0.62.0 lib/eac_rails_base0/app_generator/templates/bin/setup
eac_rails_base0-0.61.1 lib/eac_rails_base0/app_generator/templates/bin/setup
eac_rails_base0-0.61.0 lib/eac_rails_base0/app_generator/templates/bin/setup
eac_rails_base0-0.60.4 lib/eac_rails_base0/app_generator/templates/bin/setup
eac_rails_base0-0.60.3 lib/eac_rails_base0/app_generator/templates/bin/setup