We force developers to have mongo running on 27017. Some folks out there like running these things off custom ports 👎
Small PR to introduce yet another environment variable that allows the developer to overwrite this.
This will allow developers to update the Gruntfile we provide in the cloud app template to specify a custom port like so:
env: {
options: {},
// environment variables - see https://github.com/jsoverson/grunt-env for more information
local: {
FH_USE_LOCAL_DB: true,
FH_LOCAL_DB_PORT: '122331',
FH_SERVICE_MAP: function() {
/*
* Define the mappings for your services here - for local development.
* You must provide a mapping for each service you wish to access
* This can be a mapping to a locally running instance of the service (for local development)
* or a remote instance.
*/
var serviceMap = {
'SERVICE_GUID_1': 'http://127.0.0.1:8010',
'SERVICE_GUID_2': 'https://host-and-path-to-service'
};
return JSON.stringify(serviceMap);
}
}
},
Motivation
We force developers to have mongo running on 27017. Some folks out there like running these things off custom ports 👎 Small PR to introduce yet another environment variable that allows the developer to overwrite this.
This will allow developers to update the Gruntfile we provide in the cloud app template to specify a custom port like so: