2024-09-17 14:02:17 +02:00
|
|
|
|
#!/bin/bash
|
|
|
|
|
set -eo pipefail
|
|
|
|
|
|
|
|
|
|
# Se positionner sur la racine du projet
|
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
|
cd ${DIR}
|
|
|
|
|
cd ../..
|
|
|
|
|
DIR=$(pwd)
|
|
|
|
|
|
|
|
|
|
bin/console d:s:u --force --complete
|
|
|
|
|
|
2024-09-21 12:40:18 +02:00
|
|
|
|
yarn encore prod
|
|
|
|
|
|
|
|
|
|
# Asset media de base
|
|
|
|
|
mkdir -p /app/public/uploads
|
|
|
|
|
mkdir -p /app/public/uploads/logo
|
|
|
|
|
mkdir -p /app/public/uploads/image
|
|
|
|
|
mkdir -p /app/public/uploads/hero
|
|
|
|
|
mkdir -p /app/public/uploads/avatar
|
|
|
|
|
|
|
|
|
|
chown apache /app/public/uploads
|
|
|
|
|
chown apache /app/public/uploads/logo
|
|
|
|
|
chown apache /app/public/uploads/image
|
|
|
|
|
chown apache /app/public/uploads/hero
|
|
|
|
|
chown apache /app/public/uploads/avatar
|
|
|
|
|
|
|
|
|
|
cp -f /app/public/styles/medias/admin.jpg /app/public/uploads/avatar/
|
|
|
|
|
cp -f /app/public/styles/medias/noavatar.png /app/public/uploads/avatar/
|
|
|
|
|
cp -f /app/public/styles/medias/system.jpg /app/public/uploads/avatar/
|
|
|
|
|
cp -f /app/public/styles/medias/hero.jpg /app/public/uploads/hero/
|
|
|
|
|
cp -f /app/public/styles/medias/contact.jpg /app/public/uploads/image/
|
|
|
|
|
cp -f /app/public/styles/medias/link.jpg /app/public/uploads/image/
|
|
|
|
|
cp -f /app/public/styles/medias/logo.png /app/public/uploads/logo/
|
|
|
|
|
|
2024-09-17 14:02:17 +02:00
|
|
|
|
|
|
|
|
|
bin/console app:AppInit
|
|
|
|
|
bin/console app:CronInit
|
|
|
|
|
|
|
|
|
|
exec $@
|