futtern/deploy/prepare-deploy.sh
lubiana e2167fa19f
Some checks failed
/ ls (pull_request) Failing after 22s
/ ls (release) Successful in 57s
/ ls (push) Successful in 1m29s
haaaah
2025-06-18 20:54:19 +02:00

22 lines
387 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="assets public bin config migrations src templates composer.json composer.lock symfony.lock .env importmap.php"
for path in $pathsToCopy
do
cp -r ../../"$path" ./
done
APP_ENV=prod composer install --no-dev -a
rm -rf ./var/cache
cd -