diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-08-21 15:03:16 -0700 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-08-21 15:03:16 -0700 |
commit | 50baa1fdd1be1090c0d8ae6f7346d82f07369657 (patch) | |
tree | 01005b64abcb819743dcad88d5295cc8aa6e9de4 /lib | |
parent | 69708dab9f6e1c265dd2bf80eafc39bf68c356e0 (diff) | |
download | gitlab-ce-50baa1fdd1be1090c0d8ae6f7346d82f07369657.tar.gz |
Add development section to doc.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/gitlab/check.rake | 28 |
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? ... " |