production and staging(development)

This commit is contained in:
2026-04-30 12:06:48 +03:00
parent 2133cd830f
commit f6d0adea4c
5 changed files with 35 additions and 14 deletions
+3 -2
View File
@@ -3,7 +3,8 @@
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve --proxy-config src/proxy.conf.json",
"start_dev_docker": "ng serve --proxy-config src/proxy.conf.docker.json",
"start_dev": "ng serve --proxy-config src/proxy.conf.json",
"start_prod": "ng serve --configuration production",
"build": "ng build",
"watch": "ng build --watch --configuration development",
@@ -55,4 +56,4 @@
"karma-jasmine-html-reporter": "~2.1.0",
"typescript": "~5.9.3"
}
}
}
+1 -1
View File
@@ -17,7 +17,7 @@ export class GlobalConstants {
return `${environment.host_name}/api`;
}else {
//return `${environment.host_name}:${environment.port}/api`;
return `/api`; // in serve mode used proxy (proxy.conf.json)
return `/api`; // in serve mode used proxy (proxy.conf.docker.json)
}
})();
@@ -1,6 +1,6 @@
export const environment = {
default_page: 'main/tutorials/tutorials-all',
port: 8080,
port: 8081,
fromWeb: false,
production: false,
host_name: 'http://localhost',
+10
View File
@@ -0,0 +1,10 @@
{
"/api/**": {
"target": "http://localhost:8081",
"secure": false,
"changeOrigin": true,
"logLevel": "debug",
"pathRewrite": {"^/api" : "http://localhost:8081/api"}
}
}