-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdeploy-all.sh
More file actions
42 lines (28 loc) · 833 Bytes
/
deploy-all.sh
File metadata and controls
42 lines (28 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
sh .env.sh
git checkout main
git pull
docker-compose stop frontend
docker-compose rm --force frontend
docker-compose build frontend
docker-compose up -d frontend
docker-compose down
docker volume rm gptutor_www-html
docker volume rm gptutor_www-html-stage
docker-compose up -d frontend
docker-compose up -d nginx
docker-compose up -d postgresql
docker-compose up -d backend
docker-compose up -d certbot
sh .env-stage.sh
git checkout origin/develop
git pull origin develop
docker-compose stop nginx
docker-compose stop frontend-stage
docker-compose rm --force frontend-stage
docker-compose build frontend-stage
docker-compose up -d frontend-stage
docker-compose up -d nginx
docker-compose up -d frontend-stage
docker-compose up -d postgresql-stage
docker-compose up -d backend-stage
docker-compose up -d certbot-stage