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
|
2024-06-24 19:19:11 +00:00
|
|
|
rm -rf ./var/cache
|
2024-06-22 20:20:51 +00:00
|
|
|
|
2024-06-24 19:19:11 +00:00
|
|
|
cd -
|
2024-06-22 19:47:23 +00:00
|
|
|
|