futtern/deploy/prepare-deploy.sh
2024-06-23 08:27:17 +02:00

22 lines
368 B
Bash
Executable file

#!/usr/bin/env sh
TARGETDIR='deploy/futtern-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