gitlab 6.2 smtp config error
Created by: user20161119
i copy a gitlab/config/initializers/smtp_settings.rb and config the smtp as follow:
if Rails.env.production? do
Gitlab::Application.config.action_mailer.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
address: "smtp.wintaoglobal.com",
port: 587,
user_name: "[email protected]",
password: "MsdfB^z1G",
domain: "gidtlab.handssdfondelivery.net",
authentication: :login,
enable_starttls_auto: true
}
end
and restart gitlab server get errors as follow:
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load': /home/git/gitlab/config/initializers/smtp_settings.rb:18: syntax error, unexpected end-of-input (SyntaxError)
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `block in load'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/git/gitl
i am not familiar with ruby ,but i copy that file and change the value,this is an issue or i config something wrong.