Sha256: be8e0e6d170fb85c553781f9ce6f37cc64c90232a994bef8a6bba8a628b31d43
Contents?: true
Size: 850 Bytes
Versions: 3
Compression:
Stored size: 850 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require 'pathname' # path to your application root. APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) 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 application secrets ==" unless File.exist?('config/application.yml') system 'cp config/application.yml.example config/application.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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
generapp-0.4.0 | templates/bin/setup |
generapp-0.3.2 | templates/bin/setup |
generapp-0.3.1 | templates/bin/setup |