Commit c0669c12 authored by van.chen's avatar van.chen

配置测试环境和正式环境

parent c173b272
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "npm run color-less && ng serve -o", "start": "npm run color-less && ng serve -o",
"hmr": "npm run color-less && ng serve -c=hmr", "hmr": "npm run color-less && ng build --prod --build-optimizer --aot -c=hmr",
"build": "npm run color-less && ng build --prod --build-optimizer --c=production", "build": "npm run color-less && ng build --prod --build-optimizer --aot -c=production",
"analyze": "ng build --prod --build-optimizer --stats-json", "analyze": "ng build --prod --build-optimizer --stats-json",
"lint": "npm run lint:ts && npm run lint:style", "lint": "npm run lint:ts && npm run lint:style",
"lint:ts": "tslint -p src/tsconfig.app.json -c tslint.json 'src/**/*.ts'", "lint:ts": "tslint -p src/tsconfig.app.json -c tslint.json 'src/**/*.ts'",
......
...@@ -7,6 +7,7 @@ export const environment = { ...@@ -7,6 +7,7 @@ export const environment = {
production: false, production: false,
useHash: true, useHash: true,
hmr: true, hmr: true,
baseUrl: 'http://192.168.1.13:8092'
}; };
/* /*
......
...@@ -3,5 +3,5 @@ export const environment = { ...@@ -3,5 +3,5 @@ export const environment = {
production: true, production: true,
useHash: true, useHash: true,
hmr: false, hmr: false,
baseUrl: 'http://192.168.1.13:8092' baseUrl: 'http://tower.witium.com/api/'
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment