Skip to content
Snippets Groups Projects
Commit d063d307 authored by AndiMajore's avatar AndiMajore
Browse files

created dev environment for local backend execution

parent 1aaf4612
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,14 @@ ...@@ -34,6 +34,14 @@
"crossOrigin": "use-credentials" "crossOrigin": "use-credentials"
}, },
"configurations": { "configurations": {
"dev": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.dev.ts"
}
]
},
"production": { "production": {
"fileReplacements": [ "fileReplacements": [
{ {
...@@ -67,9 +75,13 @@ ...@@ -67,9 +75,13 @@
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
"options": { "options": {
"browserTarget": "netex:build" "browserTarget": "netex:build",
"proxyConfig": "conf/proxy.conf.json"
}, },
"configurations": { "configurations": {
"dev": {
"browserTarget": "netex:build:dev"
},
"production": { "production": {
"browserTarget": "netex:build:production" "browserTarget": "netex:build:production"
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"version": "0.0.0", "version": "0.0.0",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve --configuration=dev",
"build": "ng build", "build": "ng build",
"test": "ng test", "test": "ng test",
"lint": "ng lint && htmlhint", "lint": "ng lint && htmlhint",
......
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
production: false,
backend: 'http://localhost:8001/'
};
/*
* For easier debugging in development mode, you can import the following file
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
*
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
import 'zone.js/dist/zone-error'; // Included with Angular CLI.
...@@ -4,8 +4,7 @@ ...@@ -4,8 +4,7 @@
export const environment = { export const environment = {
production: false, production: false,
// backend: 'http://10.162.163.20:8001/', backend: 'http://10.162.163.20:8001/',
backend: 'http://localhost:8001/'
}; };
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment