Skip to content

Commit 651940d

Browse files
committed
Remove deploy script & reset config file
1 parent de2f183 commit 651940d

File tree

2 files changed

+56
-56
lines changed

2 files changed

+56
-56
lines changed

.github/workflows/backend_deploy.yml

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
1-
name: gin-vue-admin backend deploy
2-
3-
on:
4-
push:
5-
branches:
6-
- master
7-
paths:
8-
- './server/**'
9-
10-
jobs:
11-
12-
deploy:
13-
name: Backend deploy
14-
runs-on: [ self-hosted ]
15-
steps:
16-
17-
- name: Check out the repository
18-
uses: actions/checkout@master
19-
20-
- name: Show files
21-
run: |
22-
pwd
23-
ls -la
24-
25-
- name: Get dependencies
26-
run: |
27-
go get -v -t -d ./...
28-
if [ -f Gopkg.toml ]; then
29-
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
30-
dep ensure
31-
fi
32-
working-directory: ./server
33-
34-
- name: Build
35-
run: |
36-
go build -o run -v
37-
working-directory: ./server
38-
39-
- name: Modify config params
40-
run: |
41-
sed -i 's/%{mysql_address}/'$MYSQL_ADDR'/' config.yaml
42-
sed -i 's/%{mysql_username}/'$MYSQL_USERNAME'/' config.yaml
43-
sed -i 's/%{mysql_password}/'$MSQL_PASSWORD'/' config.yaml
44-
sed -i 's/%{redis_address}/'$REDIS_ADDR'/' config.yaml
45-
sed -i 's/%{redis_password}/'$REDIS_PASSWORD'/' config.yaml
46-
working-directory: ./server
1+
# name: gin-vue-admin backend deploy
2+
3+
# on:
4+
# push:
5+
# branches:
6+
# - master
7+
# paths:
8+
# - './server/**'
9+
10+
# jobs:
11+
12+
# deploy:
13+
# name: Backend deploy
14+
# runs-on: [ self-hosted ]
15+
# steps:
16+
17+
# - name: Check out the repository
18+
# uses: actions/checkout@master
19+
20+
# - name: Show files
21+
# run: |
22+
# pwd
23+
# ls -la
24+
25+
# - name: Get dependencies
26+
# run: |
27+
# go get -v -t -d ./...
28+
# if [ -f Gopkg.toml ]; then
29+
# curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
30+
# dep ensure
31+
# fi
32+
# working-directory: ./server
33+
34+
# - name: Build
35+
# run: |
36+
# go build -o run -v
37+
# working-directory: ./server
38+
39+
# - name: Modify config params
40+
# run: |
41+
# sed -i 's/%{mysql_address}/'$MYSQL_ADDR'/' config.yaml
42+
# sed -i 's/%{mysql_username}/'$MYSQL_USERNAME'/' config.yaml
43+
# sed -i 's/%{mysql_password}/'$MSQL_PASSWORD'/' config.yaml
44+
# sed -i 's/%{redis_address}/'$REDIS_ADDR'/' config.yaml
45+
# sed -i 's/%{redis_password}/'$REDIS_PASSWORD'/' config.yaml
46+
# working-directory: ./server
4747

48-
- name: Run Dockerfile
49-
run: |
50-
echo 'There is nothing for the time being'
51-
working-directory: ./server
48+
# - name: Run Dockerfile
49+
# run: |
50+
# echo 'There is nothing for the time being'
51+
# working-directory: ./server
5252

5353

5454

server/config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jwt:
1010

1111
# mysql connect configuration
1212
mysql:
13-
username: %{mysql_username}
14-
password: %{mysql_password}
15-
path: %{mysql_address}
13+
username: root
14+
password: 'Aa@6447985'
15+
path: '127.0.0.1:3306'
1616
db-name: 'qmPlus'
1717
config: 'charset=utf8&parseTime=True&loc=Local'
1818
max-idle-conns: 10
@@ -33,8 +33,8 @@ qiniu:
3333
img-path: 'http://qmplusimg.henrongyi.top'
3434
# redis configuration
3535
redis:
36-
addr: %{redis_address}
37-
passwprd: %{redis_password}
36+
addr: '127.0.0.1:6379'
37+
password: ''
3838
db: 0
3939

4040
# system configuration
@@ -55,4 +55,4 @@ log:
5555
prefix: '[GIN-VUE-ADMIN]'
5656
log-file: true
5757
stdout: 'DEBUG'
58-
file: 'DEBUG'
58+
file: 'DEBUG'

0 commit comments

Comments
 (0)