Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
witiumCloud2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WitCloud
witiumCloud2
Commits
96e88d2a
Commit
96e88d2a
authored
Aug 14, 2024
by
胥静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加伊利本地部署的environment
parent
66a3ac3e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
1 deletion
+46
-1
angular.json
angular.json
+24
-0
package.json
package.json
+1
-0
environment.ts
src/environments/environment.ts
+2
-1
environment.yili.ts
src/environments/environment.yili.ts
+19
-0
No files found.
angular.json
View file @
96e88d2a
...
@@ -93,6 +93,30 @@
...
@@ -93,6 +93,30 @@
}
}
]
]
},
},
"yiliProduction"
:
{
"fileReplacements"
:
[
{
"replace"
:
"src/environments/environment.ts"
,
"with"
:
"src/environments/environment.yili.ts"
}
],
"optimization"
:
true
,
"outputHashing"
:
"all"
,
"sourceMap"
:
false
,
"extractCss"
:
true
,
"namedChunks"
:
false
,
"aot"
:
true
,
"extractLicenses"
:
true
,
"vendorChunk"
:
false
,
"buildOptimizer"
:
true
,
"budgets"
:
[
{
"type"
:
"initial"
,
"maximumWarning"
:
"5mb"
,
"maximumError"
:
"10mb"
}
]
},
"test"
:
{
"test"
:
{
"fileReplacements"
:
[
"fileReplacements"
:
[
{
{
...
...
package.json
View file @
96e88d2a
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
"start"
:
"ng serve"
,
"start"
:
"ng serve"
,
"build"
:
"ng build --prod -c=production"
,
"build"
:
"ng build --prod -c=production"
,
"oflbuild"
:
"ng build --prod -c=oflProduction"
,
"oflbuild"
:
"ng build --prod -c=oflProduction"
,
"yilibuild"
:
"ng build --prod -c=yiliProduction"
,
"test"
:
"ng build --prod -c=test"
,
"test"
:
"ng build --prod -c=test"
,
"lint"
:
"ng lint"
,
"lint"
:
"ng lint"
,
"e2e"
:
"ng e2e"
"e2e"
:
"ng e2e"
...
...
src/environments/environment.ts
View file @
96e88d2a
...
@@ -5,7 +5,8 @@
...
@@ -5,7 +5,8 @@
export
const
environment
=
{
export
const
environment
=
{
production
:
false
,
production
:
false
,
test
:
false
,
test
:
false
,
baseUrl
:
'https://cloud.witium.com/api'
,
// baseUrl: 'https://cloud.witium.com/api',
baseUrl
:
'https://pma-iotcloud.xapi.digitalyili.com/api'
,
offlineFlg
:
'OFL'
,
// 离线部署flg
offlineFlg
:
'OFL'
,
// 离线部署flg
// baseUrl: 'http://cloud-test.witium.com/api', // 对外访问测试网地址
// baseUrl: 'http://cloud-test.witium.com/api', // 对外访问测试网地址
// baseUrl: 'http://172.16.1.53:8092', // cy
// baseUrl: 'http://172.16.1.53:8092', // cy
...
...
src/environments/environment.yili.ts
0 → 100644
View file @
96e88d2a
// 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
:
true
,
test
:
false
,
baseUrl
:
'https://pma-iotcloud.xapi.digitalyili.com/api'
,
offlineFlg
:
'OFL'
,
// 离线部署flg
};
/*
* 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 prtion 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.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment