Skip to content

Commit 5e06089

Browse files
committed
django 4.0支持
2 parents 1018ca9 + 63fa63c commit 5e06089

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

.github/workflows/docker.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,4 @@ jobs:
3030
push: true
3131
tags: ${{ secrets.DOCKERHUB_USERNAME }}/djangoblog:latest
3232

33-
- name: ssh deploy
34-
uses: appleboy/ssh-action@master
35-
with:
36-
host: ${{ secrets.HOST }}
37-
username: ${{ secrets.USERNAME }}
38-
key: ${{ secrets.KEY }}
39-
port: ${{ secrets.PORT }}
40-
script: |
41-
docker pull ${{ secrets.DOCKERHUB_USERNAME }}/djangoblog:latest
42-
cd ${{ secrets.DOCKERPATH }}
43-
docker-compose up -d
44-
docker restart memcached
33+

bin/docker_start.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
NAME="djangoblog" # Name of the application
3-
DJANGODIR=/code/djangoBlog # Django project directory
3+
DJANGODIR=/code/djangoblog # Django project directory
44
USER=root # the user to run as
55
GROUP=root # the group to run as
66
NUM_WORKERS=1 # how many worker processes should Gunicorn spawn
@@ -31,4 +31,4 @@ exec gunicorn ${DJANGO_WSGI_MODULE}:application \
3131
--log-level=debug \
3232
--log-file=- \
3333
--worker-class gevent \
34-
--threads 4
34+
--threads 4

0 commit comments

Comments
 (0)