Sha256: 4c538b3735c7baa7eb1047c9cec9be42daf7f3e481d810bee0cc50373ac00d63

Contents?: true

Size: 621 Bytes

Versions: 1

Compression:

Stored size: 621 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"
  invoke_task_if_exists "db:migrate"
  invoke_task_if_exists "rake parallel:create"
  invoke_task_if_exists "rake parallel:migrate"
  if %w(staging production).include?(ENV["RAILS_ENV"])
    invoke_task_if_exists "assets:precompile"
  end
  Rake::Task["restart"].invoke
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bard-rake-0.21.0 lib/bard/rake/bootstrap.rb