Commit abfb167 1 parent 23e36dd commit abfb167 Copy full SHA for abfb167
File tree 4 files changed +9
-14
lines changed
4 files changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ wget -qO- https://raw.githubusercontent.com/ly525/luban-h5/dev/deploy/ubuntu-ins
37
37
# 1.2 配置相关权限,文档参见:https://ly525.github.io/luban-h5/zh/getting-started/quick-start.html#%E5%90%8E%E7%AB%AF%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA
38
38
39
39
# 2. 鲁班前端
40
- # 2.1 宿主机访问 「鲁班前端」:localhost:1234/main , 即可看到鲁班的前端
40
+ # 2.1 宿主机访问 「鲁班前端」:localhost:1234, 即可看到鲁班的前端
41
41
```
42
42
43
43
Original file line number Diff line number Diff line change 5
5
# @Author: ly525
6
6
# @Date: 2019-11-30 13:24:57
7
7
# @LastEditors: ly525
8
- # @LastEditTime: 2019-11-30 13:30:07
8
+ # @LastEditTime: 2019-12-04 21: 13:20
9
9
# @FilePath: /luban-h5/deploy/ubuntu-install.sh
10
10
# @Github: https://github.com/ly525/luban-h5
11
11
# @Description:
34
34
# 1.2 config the permission,see more here:https://ly525.github.io/luban-h5/zh/getting-started/quick-start.html#%E5%90%8E%E7%AB%AF%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA
35
35
36
36
# 2. Luban H5 Front-End
37
- # 2.1visit on your host machine :http://localhost:1234/main , enjoy it!
37
+ # 2.1visit on your host machine :http://localhost:1234, enjoy it!
38
38
# #####################################################
39
39
40
40
# #####################################################
64
64
# 1.2 配置相关权限,文档参见:https://ly525.github.io/luban-h5/zh/getting-started/quick-start.html#%E5%90%8E%E7%AB%AF%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA
65
65
66
66
# 2. 鲁班前端
67
- # 2.1 宿主机访问 「鲁班前端」:localhost:1234/main , 即可看到鲁班的前端了
67
+ # 2.1 宿主机访问 「鲁班前端」:localhost:1234, 即可看到鲁班的前端了
68
68
# #####################################################
69
69
70
70
# #####################################################
@@ -312,8 +312,8 @@ server {
312
312
# }
313
313
314
314
315
- location ^~ /main {
316
- alias /root/luban-h5/front-end/h5/dist/;
315
+ location / {
316
+ root /root/luban-h5/front-end/h5/dist/;
317
317
# index index.html;
318
318
#try_files \$ uri \$ uri/ /index.html;
319
319
}
Original file line number Diff line number Diff line change @@ -68,11 +68,6 @@ server {
68
68
proxy_pass http://localhost:1337;
69
69
}
70
70
71
- # 注意:
72
- # 鲁班H5 核心App 部分URL 路径为: https://domain-for-luban/main
73
- # 因此 `luban-h5/front-end/h5/vue.config.js` 中 publicPath 中的配置为 `publicPath: isProd ? '/main/' : '/'`
74
- # 请根据自己的实际情况做调整,如果你的项目是部署在根路径(比如:https://domain-for-luban),修改为: publicPath: '/' 即可
75
-
76
71
location / {
77
72
root /home/centos/codebase/luban/luban-h5-dist/front-end/;
78
73
#try_files $uri $uri/ /index.html;
Original file line number Diff line number Diff line change 1
1
const path = require ( 'path' )
2
- const isProd = process . env . NODE_ENV === 'production'
2
+ // const isProd = process.env.NODE_ENV === 'production'
3
3
const target = 'http://localhost:1337'
4
4
const engineOutputDir = path . join ( __dirname , '../../back-end/h5-api/public/engine-assets' )
5
5
@@ -18,8 +18,8 @@ switch (process.env.PAGE) {
18
18
template : 'public/index.html' ,
19
19
filename : 'index.html' ,
20
20
title : 'Index Page' ,
21
- outputDir : 'dist' ,
22
- publicPath : isProd ? '/main/' : '/'
21
+ outputDir : 'dist'
22
+ // publicPath: isProd ? '/main/' : '/'
23
23
}
24
24
}
25
25
You can’t perform that action at this time.
0 commit comments