-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsharpdev.yml
70 lines (54 loc) · 1.67 KB
/
sharpdev.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: 1.0
envfile: .env
scripts:
network: sudo docker network create sharpnet
volume: sudo docker volume create --name=webcode
remove: sudo docker volume rm -f webcode
run: |
sudo docker-compose -f websites/docker-compose.yml down
sudo docker-compose -f websites/docker-compose.yml up -d --build --remove-orphans
sharpdev logs
kill: |
sudo docker-compose -f websites/docker-compose.yml down
server: |
cd websites/test$_ARG1
sudo docker-compose down
sudo docker-compose up --build --remove-orphans
cd ../../
servertest: |
cd websites/test$_ARG1
sudo docker-compose down
sudo docker-compose up -d --build --remove-orphans
cd ../../
serverkill: |
cd websites/test$_ARG1
sudo docker-compose down
cd ../../
conf: |
cd websites/test$_ARG1
sudo docker-compose exec test$_ARG1 cat /etc/nginx/conf.d/site.conf
cd ../../
confmain: |
sudo docker-compose -f websites/docker-compose.yml exec sharpnet_test cat /etc/nginx/conf.d/site.conf
confprod: |
sudo docker-compose exec sharpnet cat /etc/nginx/conf.d/site.conf
serverlogs: |
cd websites/test$_ARG1
sudo docker-compose logs -f
cd ../../
logs: |
sudo docker-compose -f websites/docker-compose.yml logs -f
exec: |
sudo docker-compose -f websites/docker-compose.yml exec -T sharpnet_test /bin/sh
nginx_conf:
sudo docker-compose -f websites/docker-compose.yml exec sharpnet_test cat /etc/nginx/conf.d/site.conf
test: |
sharpdev servertest 1
sharpdev servertest 2
sharpdev servertest 3
sharpdev run
killall: |
sharpdev serverkill 1
sharpdev serverkill 2
sharpdev serverkill 3
sharpdev kill