logipedia/deploy.sh
shrt 3843be7675
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 0s
docker files and deployment script
2025-03-17 17:02:20 +01:00

15 lines
305 B
Bash

#!/bin/bash
set -e
if [ -z "$1" ]; then
echo "Usage: $0 <project_path>"
exit 1
fi
PROJECT_PATH=$1
echo "Deploying project..."
cd "$PROJECT_PATH" || { echo "Directory not found: $PROJECT_PATH"; exit 1; }
git pull origin main
docker compose up -d --no-deps --build nextapp
echo "Deployment finished!"