Commit d209219145eff6bf48818d1cec07247927e4ecf1
1 parent
802ce946
Exists in
colab
and in
4 other branches
Correctly use ENV vars for setting the production configurations
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
config/environments/production.rb
| ... | ... | @@ -93,8 +93,8 @@ Rails.application.configure do |
| 93 | 93 | address: 'smtp.gmail.com', |
| 94 | 94 | port: 587, |
| 95 | 95 | domain: 'mezuro.org', |
| 96 | - user_name: "<%= ENV['SMTP_USERNAME'] %>", # Configure these as a environment vars on the production server | |
| 97 | - password: "<%= ENV['SMTP_PASSWORD'] %>", | |
| 96 | + user_name: ENV['SMTP_USERNAME'], # Configure these as a environment vars on the production server | |
| 97 | + password: ENV['SMTP_PASSWORD'], | |
| 98 | 98 | authentication: 'plain', |
| 99 | 99 | enable_starttls_auto: true } |
| 100 | 100 | |
| ... | ... | @@ -107,6 +107,6 @@ Rails.application.configure do |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | # Google Analytics |
| 110 | - GA.tracker = "<%= ENV['GA_TRACKER'] %>" #"UA-54363591-1" | |
| 110 | + GA.tracker = ENV['GA_TRACKER'] | |
| 111 | 111 | GA.script_source = :doubleclick |
| 112 | 112 | end | ... | ... |