Sha256: e19383140c1fbc4fdea7a6a698a6e0d7b62f9aecf29387647c2c24e1f36600aa
Contents?: true
Size: 505 Bytes
Versions: 98
Compression:
Stored size: 505 Bytes
Contents
#!/usr/bin/env ruby require 'pathname' APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) Dir.chdir APP_ROOT do puts "== Installing dependencies ==" system "gem install bundler --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== Restarting application server ==" system "touch tmp/restart.txt" end
Version data entries
98 entries across 98 versions & 1 rubygems