22 lines
360 B
Bash
Executable file
22 lines
360 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="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
|
|
|
|
|
|
|