Sha256: 9966e6edfaeedeab27c0bc8fb21e3a0386d6feaf67ca7f6d61299dac29a42cf7
Contents?: true
Size: 798 Bytes
Versions: 2
Compression:
Stored size: 798 Bytes
Contents
#!/usr/bin/env ruby require "pathname" require "fileutils" include FileUtils # path to your application root. APP_ROOT = Pathname.new File.expand_path("../../", __FILE__) 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== Preparing database ==" system! "bin/rails db:create" system! "bin/rails db:migrate" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tractor_beam-0.1.4 | templates/bin_setup |
tractor_beam-0.1.2 | templates/bin_setup |