Skip to content
Snippets Groups Projects
Commit e78c0e31 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] Better configure Cesium

parent b317b70e
No related branches found
No related tags found
No related merge requests found
......@@ -31,31 +31,10 @@ outputStream.on('close', () => {
// Configure Cesium
const cesiumConfigFile = path.join(__dirname, 'public', 'cesium', 'config.js');
const config = `/*** CONTENT GENERATED BY DUNITER-UI ***/
angular.module("cesium.config", [])
.constant("csConfig", {
"timeout": 4000,
"cacheTimeMs": 60000,
"useRelative": true,
"timeWarningExpireMembership": 5184000,
"timeWarningExpire": 7776000,
"useLocalStorage": false,
"rememberMe": false,
"showUDHistory": false,
"node": {
"host": "test-net.duniter.fr",
"port": "9201"
},
"plugins": {
},
"version": "0.3.5",
"build": "2016-09-23T22:46:36.427Z",
"newIssueUrl": "https://github.com/duniter/cesium/issues/new?labels=bug"
});
`;
let config = fs.readFileSync(cesiumConfigFile, 'utf8');
config = config.replace(/"plugins"(\n|.)*"version"/, '"plugins\": {},\n\t"version"');
fs.writeFileSync(cesiumConfigFile, config);
process.exit(0);
});
......
/******
* !! WARNING: This is a generated file !!
*
* PLEASE DO NOT MODIFY DIRECTLY
*
* => Changes should be done on file 'app/config.json'.
******/
angular.module("cesium.config", [])
.constant("csConfig", {
"timeout": 4000,
"cacheTimeMs": 60000,
"useRelative": true,
"timeWarningExpireMembership": 5184000,
"timeWarningExpire": 7776000,
"useLocalStorage": false,
"rememberMe": false,
"showUDHistory": false,
"node": {
"host": "test-net.duniter.fr",
"port": "9201"
},
"plugins": {
},
"version": "0.3.5",
"build": "2016-09-23T22:46:36.427Z",
"newIssueUrl": "https://github.com/duniter/cesium/issues/new?labels=bug"
})
;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment