Commit ac3f9b5f6eb2c5f590163a2cd474091dd2265818
Exists in
colab
and in
4 other branches
Merge pull request #119 from mezuro/fix_production_environment
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 | ... | ... |