Authored by TaoHuang

add build

... ... @@ -27,7 +27,7 @@ const report = function(data) {
}
const imgElem = new Image();
imgElem.src = config.reportUrl + '?s=ufo-app-web&l=' + str + '&t=' + (new Date()).getTime();
imgElem.src = config.reportUrl + '?s=xianyu-ufo-app-web&l=' + str + '&t=' + (new Date()).getTime();
};
export default context => {
... ...
... ... @@ -19,7 +19,7 @@ const webpackConfig = {
filename: 'static/js/[name].[chunkhash].js',
path: distDir,
chunkFilename: 'static/js/[name].[chunkhash].js',
publicPath: isProd ? '//cdn.yoho.cn/ufo-app-web/' : '/'
publicPath: isProd ? '//cdn.yoho.cn/xianyu-ufo-app-web/' : '/'
},
resolve: {
extensions: ['.js', '.vue', '.json'],
... ...
... ... @@ -194,7 +194,7 @@ if (isProduction) {
infoFile: {
name: 'info',
level: 'info',
filename: '/Data/logs/xianyu-app-web/info/info.log',
filename: '/Data/logs/xianyu-ufo-app-web/info/info.log',
maxFiles: 1,
tailable: true,
maxsize: Math.pow(1024, 3),
... ... @@ -206,7 +206,7 @@ if (isProduction) {
errorFile: {
name: 'error',
level: 'error',
filename: '/Data/logs/xianyu-app-web/error/error.log',
filename: '/Data/logs/xianyu-ufo-app-web/error/error.log',
maxFiles: 1,
tailable: true,
maxsize: Math.pow(1024, 3),
... ... @@ -251,7 +251,7 @@ if (isProduction) {
infoFile: {
name: 'info',
level: 'debug',
filename: '/Data/logs/xianyu-app-web/info/info.log',
filename: '/Data/logs/xianyu-ufo-app-web/info/info.log',
maxFiles: 1,
tailable: true,
maxsize: Math.pow(1024, 3),
... ... @@ -262,7 +262,7 @@ if (isProduction) {
errorFile: {
name: 'error',
level: 'error',
filename: '/Data/logs/xianyu-app-web/error/error.log',
filename: '/Data/logs/xianyu-ufo-app-web/error/error.log',
maxFiles: 1,
tailable: true,
maxsize: Math.pow(1024, 3),
... ...
{
"apps": [
{
"name": "ufo-app-web",
"name": "xianyu-ufo-app-web",
"script": "app.js",
"instances": "1",
"exec_mode": "cluster",
... ...