File tree Expand file tree Collapse file tree 6 files changed +23
-11
lines changed Expand file tree Collapse file tree 6 files changed +23
-11
lines changed Original file line number Diff line number Diff line change 19
19
- name : Sed Config
20
20
shell : bash
21
21
run : |
22
- sed -i 51c "\ && yarn install && yarn build" Makefile
22
+ sed -i 56c "\ && yarn install && yarn build" Makefile
23
23
make image TAGS_OPT="latest"
24
24
sed -i 's#./entrypoint.sh"#./entrypoint.sh","actions"#g' deploy/docker/Dockerfile
25
25
sed -i "s#COPY build/ /usr/share/nginx/html/#COPY . /opt/gva#g" deploy/docker/Dockerfile
Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ TAGS_OPT = latest
19
19
else
20
20
endif
21
21
22
+ ifeq ($(PLUGIN ) ,)
23
+ PLUGIN = email
24
+ else
25
+ endif
26
+
22
27
# 容器环境前后端共同打包
23
28
build : build-web build-server
24
29
docker run --name build-local --rm -v $(shell pwd) :/go/src/${PROJECT_NAME} -w /go/src/${PROJECT_NAME} ${BUILD_IMAGE_SERVER} make build-local
@@ -63,4 +68,11 @@ image: build
63
68
64
69
# 尝鲜版
65
70
images : build build-image-web build-image-server
66
- docker build -t ${REPOSITORY} /all:${TAGS_OPT} -f deploy/docker/Dockerfile .
71
+ docker build -t ${REPOSITORY} /all:${TAGS_OPT} -f deploy/docker/Dockerfile .
72
+
73
+ # 插件快捷打包: make plugin PLUGIN="这里是插件文件夹名称,默认为email"
74
+ plugin :
75
+ if [ -d " .plugin" ]; then rm -rf .plugin ; else echo " OK!" ; fi && mkdir -p .plugin/${PLUGIN} /{server/plugin,web/plugin} \
76
+ && if [ -d " server/plugin/${PLUGIN} " ]; then cp -r server/plugin/${PLUGIN} .plugin/${PLUGIN} /server/plugin/ ; else echo " OK!" ; fi \
77
+ && if [ -d " web/src/plugin/${PLUGIN} " ]; then cp -r web/src/plugin/${PLUGIN} .plugin/${PLUGIN} /web/plugin/ ; else echo " OK!" ; fi \
78
+ && cd .plugin && zip -r ${PLUGIN} .zip ${PLUGIN} && mv ${PLUGIN} .zip ../ && cd ..
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ English | [简体中文](./README.md)
25
25
26
26
[ From the environment to the deployment of teaching videos] ( https://www.bilibili.com/video/BV1fV411y7dT )
27
27
28
- [ Development Steps] ( https://www.gin-vue-admin.com/docs/help ) (Contributor: <a href =" https://github.com/LLemonGreen " >LLemonGreen</a > And <a href =" https://github.com/fkk0509 " >Fann</a >)
28
+ [ Development Steps] ( https://www.gin-vue-admin.com/guide/start-quickly/env.html ) (Contributor: <a href =" https://github.com/LLemonGreen " >LLemonGreen</a > And <a href =" https://github.com/fkk0509 " >Fann</a >)
29
29
30
30
## 1. Basic Introduction
31
31
@@ -297,7 +297,7 @@ swag init
297
297
| :---: |
298
298
| <img width =" 150 " src =" http://qmplusimg.henrongyi.top/qrjjz.png " >
299
299
300
- #### [ About Us] ( https://www.gin-vue-admin.com/about/ )
300
+ #### [ About Us] ( https://www.gin-vue-admin.com/about/join.html )
301
301
302
302
## 8. Contributors
303
303
@@ -309,7 +309,7 @@ Thank you for considering your contribution to gin-vue-admin!
309
309
310
310
## 9. Donate
311
311
312
- If you find this project useful, you can buy author a glass of juice :tropical_drink : [ here] ( https://www.gin-vue-admin.com/docs/ coffee )
312
+ If you find this project useful, you can buy author a glass of juice :tropical_drink : [ here] ( https://www.gin-vue-admin.com/coffee/index.html )
313
313
314
314
## 10. Commercial considerations
315
315
Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ swag init
370
370
371
371
添加微信,备注"加入gin-vue-admin交流群"
372
372
373
- ### [ 关于我们] ( https://www.gin-vue-admin.com/about/ )
373
+ ### [ 关于我们] ( https://www.gin-vue-admin.com/about/join.html )
374
374
375
375
## 8. 贡献者
376
376
@@ -382,7 +382,7 @@ swag init
382
382
383
383
## 9. 捐赠
384
384
385
- 如果你觉得这个项目对你有帮助,你可以请作者喝饮料 :tropical_drink : [ 点我] ( https://www.gin-vue-admin.com/docs/ coffee )
385
+ 如果你觉得这个项目对你有帮助,你可以请作者喝饮料 :tropical_drink : [ 点我] ( https://www.gin-vue-admin.com/coffee/index.html )
386
386
387
387
## 10. 友情链接
388
388
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ services:
28
28
# command: bash -c "yarn config set registry https://registry.npm.taobao.org --global && yarn install && yarn serve"
29
29
command : bash -c "yarn install && yarn serve"
30
30
volumes :
31
- - ./web:/web
31
+ - ../.. /web:/web
32
32
networks :
33
33
network :
34
34
ipv4_address : 177.7.0.11
@@ -44,7 +44,7 @@ services:
44
44
- mysql
45
45
- redis
46
46
volumes :
47
- - ./server:/server
47
+ - ../.. /server:/server
48
48
working_dir : /server # 如果docker 设置了workdir 则此处不需要设置
49
49
command : bash -c "go env -w GOPROXY=https://goproxy.cn,direct && go mod tidy && go run main.go"
50
50
links :
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ volumes:
16
16
services :
17
17
web :
18
18
build :
19
- context : ./web
19
+ context : ../.. /web
20
20
dockerfile : ./Dockerfile
21
21
container_name : gva-web
22
22
restart : always
@@ -31,7 +31,7 @@ services:
31
31
32
32
server :
33
33
build :
34
- context : ./server
34
+ context : ../.. /server
35
35
dockerfile : ./Dockerfile
36
36
container_name : gva-server
37
37
restart : always
You can’t perform that action at this time.
0 commit comments