mmk2410.org/deploy.sh
Marcel Kapfer 27c7f9ba39
All checks were successful
Deploy / deploy (push) Successful in 4s
🔧 Don't install composer dev dependencies on prod
2024-09-13 19:16:19 +02:00

16 lines
340 B
Bash
Executable file

#!/bin/bash
set -euo pipefail
INFO="\033[0;30m\033[47m"
NC="\033[0m"
log() {
echo -e "${INFO} INFO ${NC} $1"
}
log "Pulling latest changes from Git repository..."
git pull origin "$1"
log "Installing new composer dependencies and update autoloader..."
composer install --no-interaction --prefer-dist --optimize-autoloader --no-dev