Add deployment hardening scripts
This commit is contained in:
@@ -5,6 +5,10 @@ APP_DIR="${APP_DIR:-$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)}"
|
||||
|
||||
cd "$APP_DIR"
|
||||
|
||||
if [ "${TSE_BACKUP_BEFORE_UPDATE:-0}" = "1" ]; then
|
||||
bash scripts/backup.sh
|
||||
fi
|
||||
|
||||
git pull --ff-only
|
||||
composer install --no-dev --prefer-dist --optimize-autoloader --no-interaction
|
||||
npm ci
|
||||
|
||||
Reference in New Issue
Block a user