Skip to content

Commit e92e033

Browse files
committed
configuration docker setting
1 parent 1bb23bc commit e92e033

File tree

5 files changed

+16
-7
lines changed

5 files changed

+16
-7
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,5 @@ testem.log
4242
Thumbs.db
4343

4444
# Environment files
45-
/src/environments/*
4645
.scannerwork/
4746

angular.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
},
3434
"configurations": {
3535
"production": {
36+
"fileReplacements": [
37+
{
38+
"replace": "src/environments/environment.ts",
39+
"with": "src/environments/environment.prod.ts"
40+
}
41+
],
3642
"budgets": [
3743
{
3844
"type": "initial",

src/app/core/services/config-service/api.enpoints.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// import { environment } from '../../../../environments/environment';
2+
import { environment } from '../../../../environments/environment';
23
import { EnumType } from '../../models/data-handle';
34
import { ReadStatusNotice } from '../../models/notice.model';
45
import {
@@ -11,7 +12,7 @@ export const version = '/v1';
1112

1213
export const API_CONFIG = {
1314
BASE_URLS: {
14-
MAIN_API: 'http://localhost:8888/api' + version,
15+
MAIN_API: environment.IP_SERVER + version,
1516
SECONDARY_API: '',
1617
},
1718
ENDPOINTS: {
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export const environment = {
2+
production: true,
3+
IP_SERVER: 'http://72.60.41.133:8888/api',
4+
IP_SERVER_NO_SSL: 'http://192.168.1.220:8000/api',
5+
IP_SERVER_RADMIN: 'http://26.100.147.137:8888/api',
6+
IP_LOCAL: 'http://localhost:8081/api',
7+
};

src/environments/environment.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
export const environment = {
2+
production: false,
23
IP_SERVER: 'http://localhost:8888/api',
3-
// IP_SERVER: 'http://192.168.1.220:8888/api',
4-
IP_SERVER_NO_SSL: 'http://192.168.1.220:8000/api',
5-
IP_SERVER_RADMIN: 'http://26.100.147.137:8888/api',
6-
IP_LOCAL: 'http://localhost:8081/api',
74
};
8-

0 commit comments

Comments
 (0)