File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,11 +22,7 @@ permissions:
2222 group : ubuntu
2323
2424hooks :
25- AfterInstall :
26- - location : scripts/stop.sh
27- timeout : 180
28- runas : ubuntu
2925 ApplicationStart :
3026 - location : scripts/deploy.sh
3127 timeout : 180
32- runas : ubuntu
28+ runas : ubuntu
Original file line number Diff line number Diff line change 1- REPOSITORY=/home/ubuntu/qcard
1+ REPOSITORY=/home/ubuntu/app
22cd $REPOSITORY
33
4- echo " > ๋ฐฐํฌ"
5- sudo docker-compose up -d
4+ CURRENT_CONTAINER=$( sudo docker ps -aq --filter " name=qcard" )
5+
6+ if [ -z $CURRENT_CONTAINER ]
7+ then
8+ echo " > ํ์ฌ ์คํ์ค์ธ ๋์ปค ์ปจํ
์ด๋๊ฐ ์์ต๋๋ค."
9+ else
10+ echo " > kill $CURRENT_CONTAINER "
11+ sudo docker rm -f $CURRENT_CONTAINER
12+ sudo docker rmi $CURRENT_CONTAINER
13+ fi
14+
15+ sudo docker build -t qcard .
16+ sudo docker run -d -p 80:8080 --name qcard --network app qcard
Load Diff This file was deleted.
You canโt perform that action at this time.
0 commit comments