Commit 38871ba8af60cd760d731604b0a06f6559ba56ca
1 parent
9579015b
Exists in
master
and in
1 other branch
update pairwise to not rely on environment varibles
Showing
2 changed files
with
14 additions
and
0 deletions
Show diff stats
config/environments/production.rb
| @@ -24,3 +24,10 @@ config.gem "rubaidh-google_analytics", | @@ -24,3 +24,10 @@ config.gem "rubaidh-google_analytics", | ||
| 24 | 24 | ||
| 25 | PHOTOCRACY_SITE_ID = 8 | 25 | PHOTOCRACY_SITE_ID = 8 |
| 26 | ALLOURIDEAS_SITE_ID = 1 | 26 | ALLOURIDEAS_SITE_ID = 1 |
| 27 | + | ||
| 28 | +# set constants containing sensitive information | ||
| 29 | +# such as passwords for sendgrid, etc. | ||
| 30 | +extra_conf = "/data/extra-conf/environment-variables.rb" | ||
| 31 | +if File.exists?(extra_conf) | ||
| 32 | + require extra_conf | ||
| 33 | +end |
config/environments/staging.rb
| @@ -15,3 +15,10 @@ config.gem "rubaidh-google_analytics", | @@ -15,3 +15,10 @@ config.gem "rubaidh-google_analytics", | ||
| 15 | :lib => "rubaidh/google_analytics", | 15 | :lib => "rubaidh/google_analytics", |
| 16 | :version => "1.1.4", | 16 | :version => "1.1.4", |
| 17 | :source => "http://gems.github.com" | 17 | :source => "http://gems.github.com" |
| 18 | + | ||
| 19 | +# set constants containing sensitive information | ||
| 20 | +# such as passwords for sendgrid, etc. | ||
| 21 | +extra_conf = "/data/extra-conf/environment-variables.rb" | ||
| 22 | +if File.exists?(extra_conf) | ||
| 23 | + require extra_conf | ||
| 24 | +end |