Sha256: a0d274bd66da45eba9f2156e12002e5afe7ab970b74c6725ec4ca77f3c99ea85
Contents?: true
Size: 952 Bytes
Versions: 6
Compression:
Stored size: 952 Bytes
Contents
#!/usr/bin/env ruby 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 "gem install foreman --conservative" system "bundle check || bundle install" 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== Making sure Foreman is running on port 3000 ==" system 'echo "port: 3000" > .foreman' puts "\n== Copy the sample.env to .env ==" unless File.exist?(File.join(APP_ROOT, ".env")) system "cp .sample.env .env" end puts "\n== Restarting application server ==" system "mkdir -p tmp" system "touch tmp/restart.txt" end
Version data entries
6 entries across 6 versions & 1 rubygems