npm run dev now runs on local file storage. npm start runs in production, but if there is either no aws bucket or bitly key specified as env vars, it defaults back to local storage
This commit is contained in:
parent
8bb42c137a
commit
1ad71904bc
3 changed files with 243 additions and 83 deletions
|
@ -3,10 +3,12 @@ const convict = require('convict');
|
|||
let conf = convict({
|
||||
bitly_key: {
|
||||
format: String,
|
||||
default: 'localhost',
|
||||
env: 'P2P_BITLY_KEY'
|
||||
},
|
||||
s3_bucket: {
|
||||
format: String,
|
||||
default: 'localhost',
|
||||
env: 'P2P_S3_BUCKET'
|
||||
},
|
||||
redis_host: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue