summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorjubianchi <contact@jubianchi.fr>2015-01-29 12:37:17 +0100
committerjubianchi <contact@jubianchi.fr>2015-04-27 21:32:41 +0200
commit3070b2cfc7bc09dac42f4af3724c27ecc1ed7a97 (patch)
tree1c12dbc82a075a89aa6289fb3c47ee3f3d8caf58 /lib
parentfbb5a359fe1bb271a1068ba3c4ca68ca0234be4e (diff)
downloadgitlab-ce-3070b2cfc7bc09dac42f4af3724c27ecc1ed7a97.tar.gz
Add a rake task to automatically restart foreman when changes occur
Diffstat (limited to 'lib')
-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