futtern/deploy/prepare-deploy.sh

24 lines
383 B
Bash
Raw Permalink Normal View History

2024-06-17 20:41:47 +00:00
#!/usr/bin/env sh
2024-06-23 07:21:20 +00:00
TARGETDIR='deploy/app'
2024-06-22 19:47:23 +00:00
if [ -d $TARGETDIR ]; then
rm -rf $TARGETDIR
2024-06-17 20:41:47 +00:00
fi
2024-06-22 19:47:23 +00:00
mkdir $TARGETDIR
cd $TARGETDIR || return
2024-06-17 20:41:47 +00:00
2024-06-23 06:27:17 +00:00
pathsToCopy="public bin config migrations src templates composer.json composer.lock symfony.lock .env"
2024-06-17 20:41:47 +00:00
for path in $pathsToCopy
do
cp -r ../../"$path" ./
done
rm ./bin/phpunit
APP_ENV=prod composer install --no-dev -a
rm -rf ./var/cache
2024-06-22 20:20:51 +00:00
cd -
2024-06-22 19:47:23 +00:00