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
path: root/lib/tasks
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-08-22 01:03:16 +0300
committerDouwe Maan <douwe@gitlab.com>2015-08-22 01:03:16 +0300
commit50baa1fdd1be1090c0d8ae6f7346d82f07369657 (patch)
tree01005b64abcb819743dcad88d5295cc8aa6e9de4 /lib/tasks
parent69708dab9f6e1c265dd2bf80eafc39bf68c356e0 (diff)
Add development section to doc.
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gitlab/check.rake28
1 files changed, 26 insertions, 2 deletions
diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake
index 3fbd429ef8d..a48e23e63a8 100644
--- a/lib/tasks/gitlab/check.rake
+++ b/lib/tasks/gitlab/check.rake
@@ -589,8 +589,13 @@ namespace :gitlab do
check_address_formatted_correctly
check_mail_room_config_exists
check_imap_authentication
- check_initd_configured_correctly
- check_mail_room_running
+
+ if Rails.env.production?
+ check_initd_configured_correctly
+ check_mail_room_running
+ else
+ check_foreman_configured_correctly
+ end
else
puts 'Reply by email is disabled in config/gitlab.yml'
end
@@ -635,6 +640,25 @@ namespace :gitlab do
end
end
+ def check_foreman_configured_correctly
+ print "Foreman configured correctly? ... "
+
+ path = Rails.root.join("Procfile")
+
+ if File.exist?(path) && File.read(path) =~ /mail_room:/
+ puts "yes".green
+ else
+ puts "no".red
+ try_fixing_it(
+ "Enable mail_room in your Procfile."
+ )
+ for_more_information(
+ "doc/reply_by_email/README.md"
+ )
+ fix_and_rerun
+ end
+ end
+
def check_mail_room_running
print "MailRoom running? ... "