Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjubianchi <contact@jubianchi.fr>2015-01-29 14:37:17 +0300
committerjubianchi <contact@jubianchi.fr>2015-04-27 22:32:41 +0300
commit3070b2cfc7bc09dac42f4af3724c27ecc1ed7a97 (patch)
tree1c12dbc82a075a89aa6289fb3c47ee3f3d8caf58 /lib/tasks/dev.rake
parentfbb5a359fe1bb271a1068ba3c4ca68ca0234be4e (diff)
Add a rake task to automatically restart foreman when changes occur
Diffstat (limited to 'lib/tasks/dev.rake')
-rw-r--r--lib/tasks/dev.rake5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tasks/dev.rake b/lib/tasks/dev.rake
index 058c7417040..b22c631c8ba 100644
--- a/lib/tasks/dev.rake
+++ b/lib/tasks/dev.rake
@@ -7,4 +7,9 @@ namespace :dev do
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