Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
fix(config): stop using envc; interferes with docker --env-file (#1833)…
Browse files Browse the repository at this point in the history
… r=vladikoff
  • Loading branch information
jrgm authored and vladikoff committed Apr 17, 2017
1 parent e9f8c23 commit 82bd9b5
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 39 deletions.
16 changes: 0 additions & 16 deletions .env.dev

This file was deleted.

32 changes: 32 additions & 0 deletions config/dev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"contentServer": {
"url": "http://127.0.0.1:3030"
},
"customsUrl": "none",
"lockoutEnabled": true,
"log": {
"fmt": "pretty",
"level": "info"
},
"sms": {
"isStatusGeoEnabled": false
},
"smtp": {
"host": "127.0.0.1",
"port": 9999,
"secure": false
},
"snsTopicArn": "disabled",
"statsd": {
"sample_rate": 1
},
"verificationReminders": {
"rate": 1
},
"verifierVersion": 0,
"securityHistory": {
"ipProfiling": {
"allowedRecency": 0
}
}
}
6 changes: 3 additions & 3 deletions config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

require('envc')()

var fs = require('fs')
var path = require('path')
var url = require('url')
Expand Down Expand Up @@ -757,7 +755,9 @@ var conf = convict({
// files to process, which will be overlayed in order, in the CONFIG_FILES
// environment variable.

var files = (process.env.CONFIG_FILES || '').split(',').filter(fs.existsSync)
var envConfig = path.join(__dirname, conf.get('env') + '.json')
envConfig = envConfig + ',' + (process.env.CONFIG_FILES || '')
var files = envConfig.split(',').filter(fs.existsSync)
conf.loadFile(files)
conf.validate({ strict: true })

Expand Down
19 changes: 0 additions & 19 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"buffer-equal-constant-time": "1.0.1",
"convict": "2.0.0",
"email-addresses": "2.0.2",
"envc": "2.4.0",
"fxa-geodb": "0.0.8",
"fxa-jwtool": "0.7.1",
"fxa-shared": "1.0.4",
Expand Down

0 comments on commit 82bd9b5

Please sign in to comment.