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