Sha256: 019e96dcd2c89eac6ecc15cb4eeecac8829980777215379944f5fb9c5d0b367d

Contents?: true

Size: 534 Bytes

Versions: 3

Compression:

Stored size: 534 Bytes

Contents

task :restart do
  system "touch tmp/restart.txt"
  system "passenger-config restart-app `pwd` >/dev/null 2>&1"
end

desc "Bootstrap project"
task :bootstrap do
  system "cp config/database.sample.yml config/database.yml" unless File.exist?('config/database.yml') or !File.exist?('config/database.sample.yml')
  invoke_task_if_exists "db:create:all"
  invoke_task_if_exists "db:migrate:all"
  if %w(staging production).include?(ENV["RAILS_ENV"])
    invoke_task_if_exists "assets:precompile"
  end
  Rake::Task["restart"].invoke
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bard-rake-0.20.0 lib/bard/rake/bootstrap.rb
bard-rake-0.19.1 lib/bard/rake/bootstrap.rb
bard-rake-0.18.5 lib/bard/rake/bootstrap.rb