Sha256: 38cbdd8064023428ab9e2b0ad4355662f3dde3afc09b6a0c556faa9e8c5e680d

Contents?: true

Size: 804 Bytes

Versions: 4

Compression:

Stored size: 804 Bytes

Contents

#!/usr/bin/env ruby

require 'pathname'

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

Dir.chdir APP_ROOT do
  # This script is a starting point to setup the new application.
  # Add necessary setup steps to this file

  puts '== Installing dependencies =='
  system 'gem install bundler --conservative'
  system 'bundle check || bundle install'

  # unless File.exist?('config/database.yml')
  #   puts "\n== Copying sample files =="
  #   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

4 entries across 2 versions & 1 rubygems

Version Path
nugem-0.8.3 templates/rails/plugin_scaffold/test/dummy/bin/setup
nugem-0.8.3 templates/rails/rails_scaffold/test/dummy/bin/setup
nugem-0.8.1 templates/rails/plugin_scaffold/test/dummy/bin/setup
nugem-0.8.1 templates/rails/rails_scaffold/test/dummy/bin/setup