2024-06-30 12:06:40 +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-07-27 09:15:34 +02:00
|
|
|
|
# Si l'alias courrant est différent que celui généré = on compile encore
|
|
|
|
|
last_alias=""
|
|
|
|
|
if [ -f .alias ]; then
|
|
|
|
|
last_alias=$(cat .alias)
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ "$APP_MANIFEST_KEY_PREFIX" != "$last_alias" ]; then
|
|
|
|
|
echo "Alias a changé. Recompilation nécessaire."
|
|
|
|
|
echo "$APP_MANIFEST_KEY_PREFIX" > .alias
|
|
|
|
|
yarn encore dev
|
|
|
|
|
yarn encore prod
|
|
|
|
|
fi
|
|
|
|
|
|
2024-06-30 12:06:40 +02:00
|
|
|
|
bin/console app:Init
|
|
|
|
|
|
|
|
|
|
exec $@
|