futtern/deploy/prepare-deploy.sh
lubiana 9119029419
Some checks failed
/ ls (pull_request) Failing after 22s
/ ls (push) Successful in 2m5s
update deployment folder for php 8.4
2025-02-01 22:44:28 +01:00

22 lines
366 B
Bash
Executable file

#!/usr/bin/env sh
TARGETDIR='deploy/app'
if [ -d $TARGETDIR ]; then
rm -rf $TARGETDIR
fi
mkdir $TARGETDIR
cd $TARGETDIR || return
pathsToCopy="public bin config migrations src templates composer.json composer.lock symfony.lock .env"
for path in $pathsToCopy
do
cp -r ../../"$path" ./
done
APP_ENV=prod composer install --no-dev -a
rm -rf ./var/cache
cd -