Authored by TaoHuang

add build

@@ -27,7 +27,7 @@ const report = function(data) { @@ -27,7 +27,7 @@ const report = function(data) {
27 } 27 }
28 const imgElem = new Image(); 28 const imgElem = new Image();
29 29
30 - imgElem.src = config.reportUrl + '?s=ufo-app-web&l=' + str + '&t=' + (new Date()).getTime(); 30 + imgElem.src = config.reportUrl + '?s=xianyu-ufo-app-web&l=' + str + '&t=' + (new Date()).getTime();
31 }; 31 };
32 32
33 export default context => { 33 export default context => {
@@ -19,7 +19,7 @@ const webpackConfig = { @@ -19,7 +19,7 @@ const webpackConfig = {
19 filename: 'static/js/[name].[chunkhash].js', 19 filename: 'static/js/[name].[chunkhash].js',
20 path: distDir, 20 path: distDir,
21 chunkFilename: 'static/js/[name].[chunkhash].js', 21 chunkFilename: 'static/js/[name].[chunkhash].js',
22 - publicPath: isProd ? '//cdn.yoho.cn/ufo-app-web/' : '/' 22 + publicPath: isProd ? '//cdn.yoho.cn/xianyu-ufo-app-web/' : '/'
23 }, 23 },
24 resolve: { 24 resolve: {
25 extensions: ['.js', '.vue', '.json'], 25 extensions: ['.js', '.vue', '.json'],
@@ -194,7 +194,7 @@ if (isProduction) { @@ -194,7 +194,7 @@ if (isProduction) {
194 infoFile: { 194 infoFile: {
195 name: 'info', 195 name: 'info',
196 level: 'info', 196 level: 'info',
197 - filename: '/Data/logs/xianyu-app-web/info/info.log', 197 + filename: '/Data/logs/xianyu-ufo-app-web/info/info.log',
198 maxFiles: 1, 198 maxFiles: 1,
199 tailable: true, 199 tailable: true,
200 maxsize: Math.pow(1024, 3), 200 maxsize: Math.pow(1024, 3),
@@ -206,7 +206,7 @@ if (isProduction) { @@ -206,7 +206,7 @@ if (isProduction) {
206 errorFile: { 206 errorFile: {
207 name: 'error', 207 name: 'error',
208 level: 'error', 208 level: 'error',
209 - filename: '/Data/logs/xianyu-app-web/error/error.log', 209 + filename: '/Data/logs/xianyu-ufo-app-web/error/error.log',
210 maxFiles: 1, 210 maxFiles: 1,
211 tailable: true, 211 tailable: true,
212 maxsize: Math.pow(1024, 3), 212 maxsize: Math.pow(1024, 3),
@@ -251,7 +251,7 @@ if (isProduction) { @@ -251,7 +251,7 @@ if (isProduction) {
251 infoFile: { 251 infoFile: {
252 name: 'info', 252 name: 'info',
253 level: 'debug', 253 level: 'debug',
254 - filename: '/Data/logs/xianyu-app-web/info/info.log', 254 + filename: '/Data/logs/xianyu-ufo-app-web/info/info.log',
255 maxFiles: 1, 255 maxFiles: 1,
256 tailable: true, 256 tailable: true,
257 maxsize: Math.pow(1024, 3), 257 maxsize: Math.pow(1024, 3),
@@ -262,7 +262,7 @@ if (isProduction) { @@ -262,7 +262,7 @@ if (isProduction) {
262 errorFile: { 262 errorFile: {
263 name: 'error', 263 name: 'error',
264 level: 'error', 264 level: 'error',
265 - filename: '/Data/logs/xianyu-app-web/error/error.log', 265 + filename: '/Data/logs/xianyu-ufo-app-web/error/error.log',
266 maxFiles: 1, 266 maxFiles: 1,
267 tailable: true, 267 tailable: true,
268 maxsize: Math.pow(1024, 3), 268 maxsize: Math.pow(1024, 3),
1 { 1 {
2 "apps": [ 2 "apps": [
3 { 3 {
4 - "name": "ufo-app-web", 4 + "name": "xianyu-ufo-app-web",
5 "script": "app.js", 5 "script": "app.js",
6 "instances": "1", 6 "instances": "1",
7 "exec_mode": "cluster", 7 "exec_mode": "cluster",