passage du port 3000 -> 4000 pour json-server et ajout de la variable host dans l'environement de prod

This commit is contained in:
Vincent BENOIT
2022-04-06 17:21:54 +02:00
parent e740784f41
commit 8f99b38a47
3 changed files with 4 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "concurrently \"ng serve\" \"json-server --watch db.json\"",
"start": "concurrently \"ng serve\" \"json-server -p 4000 --watch db.json\"",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test"

View File

@@ -1,3 +1,4 @@
export const environment = {
production: true
production: true,
host: "http://localhost:3000"
};

View File

@@ -4,7 +4,7 @@
export const environment = {
production: false,
host: "http://localhost:3000"
host: "http://localhost:4000"
};
/*