From 448d68b747aa0b2e6b979cd4838c37a0baf235b9 Mon Sep 17 00:00:00 2001 From: OliverLonghi Date: Tue, 13 Mar 2018 12:52:26 -0300 Subject: [PATCH] Fix to change environment It was always building production environment despite using `cross-env ENV=dev` preapended to `npm start` (at least at windows). --- hooks/environments/set_profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/environments/set_profile.js b/hooks/environments/set_profile.js index f200c89c3..58d69871c 100644 --- a/hooks/environments/set_profile.js +++ b/hooks/environments/set_profile.js @@ -7,7 +7,7 @@ var path = require('path'); var profile = process.env.ENV ? process.env.ENV : 'local'; console.log('Déplacement du template de fichier de détection de configuration ...'); -fs.copySync(path.resolve(__dirname,'./app.config.ts.tpl'), path.resolve(__dirname,'../src/app/app.config.ts')); +fs.copySync(path.resolve(__dirname,'./app.config.ts.tpl'), path.resolve(__dirname,'../../src/app/app.config.ts')); console.log('Application du profil : ' + profile);