futtern/deploy/prepare-deploy.sh
lubiana 14bb4a1542
All checks were successful
/ ls (pull_request) Successful in 29s
/ ls (push) Successful in 28s
update deployment paths
2024-06-23 09:21:20 +02:00

22 lines
360 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
rm ./bin/phpunit
APP_ENV=prod composer install --no-dev -a