Sha256: 2fee97835eaa32aa911ce5236494a75d64fb87b855c16b29e23c9413006d0a79

Contents?: true

Size: 813 Bytes

Versions: 19

Compression:

Stored size: 813 Bytes

Contents

#!/usr/bin/env ruby.ruby2.2
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 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

19 entries across 19 versions & 2 rubygems

Version Path
seapig-rails-0.1.4 test/dummy/bin/setup
seapig-rails-0.1.3 test/dummy/bin/setup
seapig-rails-0.1.2 test/dummy/bin/setup
seapig-rails-0.1.0 test/dummy/bin/setup
seapig-rails-0.0.7 test/dummy/bin/setup
seapig-server-0.0.8 test/dummy/bin/setup
seapig-server-0.0.7 test/dummy/bin/setup
seapig-rails-0.0.6 test/dummy/bin/setup
seapig-server-0.0.6 test/dummy/bin/setup
seapig-rails-0.0.5 test/dummy/bin/setup
seapig-server-0.0.5 test/dummy/bin/setup
seapig-server-0.0.4 test/dummy/bin/setup
seapig-rails-0.0.4 test/dummy/bin/setup
seapig-server-0.0.3 test/dummy/bin/setup
seapig-rails-0.0.3 test/dummy/bin/setup
seapig-rails-0.0.2 test/dummy/bin/setup
seapig-server-0.0.2 test/dummy/bin/setup
seapig-rails-0.0.1 test/dummy/bin/setup
seapig-server-0.0.1 test/dummy/bin/setup