passage du port 3000 -> 4000 pour json-server et ajout de la variable host dans l'environement de prod
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
export const environment = {
|
||||
production: true
|
||||
production: true,
|
||||
host: "http://localhost:3000"
|
||||
};
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
export const environment = {
|
||||
production: false,
|
||||
host: "http://localhost:3000"
|
||||
host: "http://localhost:4000"
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user