summaryrefslogtreecommitdiff
path: root/lib/tasks/dev.rake
blob: 6f27972c4e4667c9d1c7db33c73ec5777acfd6fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
task dev: ["dev:setup"]

namespace :dev do
  desc "GitLab | Setup developer environment (db, fixtures)"
  task :setup => :environment do
    ENV['force'] = 'yes'
    Rake::Task["gitlab:setup"].invoke
    Rake::Task["gitlab:shell:setup"].invoke
  end

  desc 'GitLab | Start/restart foreman and watch for changes'
  task :foreman => :environment do
    sh 'rerun --dir app,config,lib -- foreman start'
  end
end