Skip to content

Commit 81129a3

Browse files
committed
add configuration
1 parent 16b5fde commit 81129a3

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@
1414
# Ignore all logfiles and tempfiles.
1515
/log/*.log
1616
/tmp
17+
18+
# Ignore application configuration
19+
/config/application.yml

config/environments/development.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,19 @@
1616
# Don't care if the mailer can't send.
1717
config.action_mailer.raise_delivery_errors = false
1818

19+
# Send email in development mode.
20+
config.action_mailer.perform_deliveries = true
21+
22+
config.action_mailer.smtp_settings = {
23+
address: "smtp.gmail.com",
24+
port: 587,
25+
domain: "example.com",
26+
authentication: "plain",
27+
enable_starttls_auto: true,
28+
user_name: ENV["GMAIL_USERNAME"],
29+
password: ENV["GMAIL_PASSWORD"]
30+
}
31+
1932
# Print deprecation notices to the Rails logger.
2033
config.active_support.deprecation = :log
2134

0 commit comments

Comments
 (0)