Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sample_app
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyen Hoang Mai Phuong
sample_app
Commits
919532ec
Commit
919532ec
authored
Jun 24, 2021
by
Nguyen Hoang Mai Phuong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
send email error
parent
cd996a3b
Pipeline
#1298
canceled with stages
in 0 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
13 deletions
+4
-13
config/application.rb
+0
-1
config/environments/development.rb
+3
-7
config/environments/production.rb
+1
-5
No files found.
config/application.rb
View file @
919532ec
...
@@ -10,7 +10,6 @@ module SampleApp
...
@@ -10,7 +10,6 @@ module SampleApp
class
Application
<
Rails
::
Application
class
Application
<
Rails
::
Application
# Initialize configuration defaults for originally generated Rails version.
# Initialize configuration defaults for originally generated Rails version.
config
.
load_defaults
6.1
config
.
load_defaults
6.1
config
.
assets
.
initialize_on_precompile
=
false
# Configuration for the application, engines, and railties goes here.
# Configuration for the application, engines, and railties goes here.
#
#
...
...
config/environments/development.rb
View file @
919532ec
...
@@ -33,15 +33,11 @@ Rails.application.configure do
...
@@ -33,15 +33,11 @@ Rails.application.configure do
# Store uploaded files on the local file system (see config/storage.yml for options).
# Store uploaded files on the local file system (see config/storage.yml for options).
config
.
active_storage
.
service
=
:local
config
.
active_storage
.
service
=
:local
config
.
action_mailer
.
perform_deliveries
=
true
# Don't care if the mailer can't send.
# Don't care if the mailer can't send.
config
.
action_mailer
.
raise_delivery_errors
=
true
config
.
action_mailer
.
raise_delivery_errors
=
true
config
.
action_mailer
.
default_url_options
=
{
host:
"localhost:3000"
,
protocol:
"http"
}
# Action Mailer
config
.
action_mailer
.
default_url_options
=
{
host:
'localhost:3000'
}
# for absolute urls in email
config
.
action_mailer
.
asset_host
=
"http://localhost:3000"
# for image URLs in HTML email
# Allow generating absolute urls with routing url helpers.
Rails
.
application
.
routes
.
default_url_options
[
:host
]
=
'localhost:3000'
# Use this if developing on localhost.
# Use this if developing on localhost.
# config.action_mailer.default_url_options = { host: host, protocol: 'http' }
# config.action_mailer.default_url_options = { host: host, protocol: 'http' }
...
...
config/environments/production.rb
View file @
919532ec
...
@@ -6,16 +6,12 @@ Rails.application.configure do
...
@@ -6,16 +6,12 @@ Rails.application.configure do
# Code is not reloaded between requests.
# Code is not reloaded between requests.
config
.
cache_classes
=
true
config
.
cache_classes
=
true
config
.
action_mailer
.
perform_deliveries
=
true
config
.
action_mailer
.
raise_delivery_errors
=
true
config
.
action_mailer
.
delivery_method
=
:smtp
config
.
action_mailer
.
delivery_method
=
:smtp
config
.
action_mailer
.
default_url_options
=
{
host:
"fathomless-garden-95089.herokuapp.com"
,
protocol:
"https"
}
config
.
action_mailer
.
default_url_options
=
{
host:
"fathomless-garden-95089.herokuapp.com"
,
protocol:
"https"
}
config
.
action_mailer
.
smtp_settings
=
{
config
.
action_mailer
.
smtp_settings
=
{
address:
'smtp.gmail.com'
,
address:
'smtp.gmail.com'
,
port:
587
,
port:
587
,
domain:
'
fathomless-garden-95089.herokuapp
.com'
,
domain:
'
heroku
.com'
,
user_name:
Rails
.
application
.
credentials
.
dig
(
:google_smtp
,
:email
),
user_name:
Rails
.
application
.
credentials
.
dig
(
:google_smtp
,
:email
),
password:
Rails
.
application
.
credentials
.
dig
(
:google_smtp
,
:password
),
password:
Rails
.
application
.
credentials
.
dig
(
:google_smtp
,
:password
),
authentication:
'plain'
,
authentication:
'plain'
,
...
...
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