mirror of
https://github.com/JuLi0n21/pwa-player.git
synced 2026-04-19 15:30:05 +00:00
change script to call docker compose
This commit is contained in:
15
deploy.sh
Normal file
15
deploy.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
REPO_URL="https://github.com/juli0n21/pwa-player.git"
|
||||
REPO_DIR=$(pwd)
|
||||
|
||||
if [ -d "$REPO_DIR/.git" ]; then
|
||||
echo "Pulling latest changes from $REPO_URL..."
|
||||
git -C "$REPO_DIR" pull
|
||||
else
|
||||
echo "Cloning repository $REPO_URL..."
|
||||
git clone "$REPO_URL" "$REPO_DIR"
|
||||
fi
|
||||
|
||||
docker compose up --build -d
|
||||
|
||||
Reference in New Issue
Block a user