Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
50baa1fd
Commit
50baa1fd
authored
Aug 21, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add development section to doc.
parent
69708dab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
4 deletions
+28
-4
doc/reply_by_email/README.md
doc/reply_by_email/README.md
+2
-2
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+26
-2
No files found.
doc/reply_by_email/README.md
View file @
50baa1fd
...
...
@@ -87,13 +87,13 @@ In this example, we'll use the Gmail address `gitlab-replies@gmail.com`. If you'
mail_room_enabled=true
```
6.
Restart GitLab
6.
Restart GitLab
:
```
sh
sudo
service gitlab restart
```
7.
Check if everything is configured correctly
7.
Check if everything is configured correctly
:
```sh
sudo bundle exec rake gitlab:reply_by_email:check RAILS_ENV=production
...
...
lib/tasks/gitlab/check.rake
View file @
50baa1fd
...
...
@@ -589,8 +589,13 @@ namespace :gitlab do
check_address_formatted_correctly
check_mail_room_config_exists
check_imap_authentication
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? ... "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment