Loading tools/edition_manager.js +5 −2 Changes for tools/edition_manager.js: 5 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -63,7 +63,6 @@ function new_edition(editionId){ de base. */ function create_project_baseconf(id, db, type_env){ var template = fs.readFileSync(TEMPLATE_CONFIG_FILE, {encoding: 'utf-8'}) template = template.replace("%ID%",id).replace("%DB%",db).replace("%ENV%",type_env); Loading @@ -74,7 +73,11 @@ function create_project_baseconf(id, db, type_env){ return console.log(err); } //Déplacement du fichier créé dans le répertoire de l'édition. fs.rename(filename, EDITIONS_FOLDER_PATH + id + "/" +filename); fs.rename(filename, EDITIONS_FOLDER_PATH + id + "/" +filename, function(err){ if(err){ return console.log(err); } }); console.log( "=== Création du fichier de configuration " + filename + " - OK"); Loading Loading
tools/edition_manager.js +5 −2 Changes for tools/edition_manager.js: 5 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -63,7 +63,6 @@ function new_edition(editionId){ de base. */ function create_project_baseconf(id, db, type_env){ var template = fs.readFileSync(TEMPLATE_CONFIG_FILE, {encoding: 'utf-8'}) template = template.replace("%ID%",id).replace("%DB%",db).replace("%ENV%",type_env); Loading @@ -74,7 +73,11 @@ function create_project_baseconf(id, db, type_env){ return console.log(err); } //Déplacement du fichier créé dans le répertoire de l'édition. fs.rename(filename, EDITIONS_FOLDER_PATH + id + "/" +filename); fs.rename(filename, EDITIONS_FOLDER_PATH + id + "/" +filename, function(err){ if(err){ return console.log(err); } }); console.log( "=== Création du fichier de configuration " + filename + " - OK"); Loading