1
0
Fork 0
mirror of https://github.com/mmumshad/ansible-playable.git synced 2025-02-12 16:41:57 +00:00

Add environment variable for DB and Script Engine

This commit is contained in:
Mumshad Mannambeth 2017-07-07 12:27:41 -04:00
parent a81a72ed3c
commit b9850d4ac5
2 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@ module.exports = {
// MongoDB connection options
mongo: {
uri: 'mongodb://db/app2-dev'
uri: process.env.MONGODB_URI_DEV || 'mongodb://db/app2-dev'
},
// Seed database on startup

View file

@ -4,8 +4,8 @@ exports = module.exports = {
// List of user roles
userRoles: ['guest', 'user', 'admin'],
'scriptEngine' : {
'host' : 'localhost',
'user' : 'root',
'password' : 'P@ssw0rd@123'
'host' : process.env.SCRIPT_ENGINE_HOST || 'localhost',
'user' : process.env.SCRIPT_ENGINE_USER || 'root',
'password' : process.env.SCRIPT_ENGINE_PASSWORD || 'P@ssw0rd@123'
}
};