2014-03-15 05:39:35 -04:00
|
|
|
task dev: ["dev:setup"]
|
|
|
|
|
2013-08-26 06:20:45 -04:00
|
|
|
namespace :dev do
|
2015-06-23 10:52:40 -04:00
|
|
|
desc "GitLab | Setup developer environment (db, fixtures)"
|
2013-08-26 06:20:45 -04:00
|
|
|
task :setup => :environment do
|
|
|
|
ENV['force'] = 'yes'
|
2014-03-15 05:39:35 -04:00
|
|
|
Rake::Task["gitlab:setup"].invoke
|
2013-08-26 06:20:45 -04:00
|
|
|
Rake::Task["gitlab:shell:setup"].invoke
|
|
|
|
end
|
2015-01-29 06:37:17 -05:00
|
|
|
|
2015-06-23 10:52:40 -04:00
|
|
|
desc 'GitLab | Start/restart foreman and watch for changes'
|
2015-01-29 06:37:17 -05:00
|
|
|
task :foreman => :environment do
|
|
|
|
sh 'rerun --dir app,config,lib -- foreman start'
|
|
|
|
end
|
2013-08-26 06:20:45 -04:00
|
|
|
end
|