I am developing a Ruby on Rails application, using git for synchronising code between stakeholders. The application has the ability to send emails. Each stakeholder has his own SMTP provider which is defined in config/initializers/smtp.rb
during installation.
ActionMailer::Base.smtp_settings = {
address: "smtp.emailme.com",
port: 587,
domain: "emailme.com",
authentication: "plain",
enable_starttls_auto: true,
user_name: "me@emailme.com",
password: "Password"
}
The .gitignore file is defined as:
*.rbc
capybara-*.html
.rspec
/log
/tmp
/public/system
/coverage/
/spec/tmp
**.orig
rerun.txt
pickle-email-*.html
## Environment normalization:
/.bundle
/vendor/bundle
# these should all be checked in to normalize the environment:
# Gemfile.lock, .ruby-version, .ruby-gemset
Gemfile~
config/initializers/smtp.rb
.gitignore files are identical on Github and on my computer. I tried to specify
config/initializers/smtp.rb
or
/config/initializers/smtp.rb
But whatever, the smtp.rb
file on my computer gets overwritten with the file on Github. And it's the same the other way round.
What did I miss?