Add deploy.sh
This commit is contained in:
10
api/deploy.sh
Normal file
10
api/deploy.sh
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
git pull
|
||||||
|
docker compose down
|
||||||
|
|
||||||
|
if [ "$1" != "preserve" ]; then
|
||||||
|
docker compose build --no-cache
|
||||||
|
fi
|
||||||
|
|
||||||
|
docker compose up -d --force-recreate
|
||||||
Reference in New Issue
Block a user