File tree Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Original file line number Diff line number Diff line change 30
30
push : true
31
31
tags : ${{ secrets.DOCKERHUB_USERNAME }}/djangoblog:latest
32
32
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
+
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
NAME=" djangoblog" # Name of the application
3
- DJANGODIR=/code/djangoBlog # Django project directory
3
+ DJANGODIR=/code/djangoblog # Django project directory
4
4
USER=root # the user to run as
5
5
GROUP=root # the group to run as
6
6
NUM_WORKERS=1 # how many worker processes should Gunicorn spawn
@@ -31,4 +31,4 @@ exec gunicorn ${DJANGO_WSGI_MODULE}:application \
31
31
--log-level=debug \
32
32
--log-file=- \
33
33
--worker-class gevent \
34
- --threads 4
34
+ --threads 4
You can’t perform that action at this time.
0 commit comments