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:
Abhinav Adduri 2017-06-07 14:07:31 -07:00
parent 8bb42c137a
commit 1ad71904bc
3 changed files with 243 additions and 83 deletions

View file

@ -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: {