first commit symfony 6

This commit is contained in:
2022-07-22 13:35:04 +00:00
parent 4cdabaa4e3
commit dd85dcd74a
17 changed files with 14039 additions and 610 deletions

1
bin/nineskeletor.cron Normal file
View File

@ -0,0 +1 @@
* * * * * www-data /var/www/html/nineskeletor/bin/console app:Cron &>/dev/null

19
bin/perm.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash
# Se positionner sur la racine du projet
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd ${DIR}
cd ..
DIR=$(pwd)
# Définir le group propriétaire
group=$2
if [ -z $group ]
then
group=$1
fi
# Placer les permissions
sudo chown $1:$group ${DIR} -R
sudo chmod +w ${DIR} -R
sudo chmod g+rw ${DIR} -R

37
bin/reconfigure.sh Executable file
View File

@ -0,0 +1,37 @@
#!/bin/bash
# Se positionner sur la racine du projet
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd ${DIR}
cd ..
DIR=$(pwd)
# Import des env
. $DIR/.env
. $DIR/.env.local
docker-compose stop
docker-compose up -d
# Déclaration d'un proxy
if [[ "$PROXY_USE" == "1" ]]
then
export HTTP_PROXY="$PROXY_HOST:$PROXY_PORT"
export HTTPS_PROXY="$PROXY_HOST:$PROXY_PORT"
fi
# Suppression des logs trop ancien
if [[ -d $DIR/var/log ]]
then
find $DIR/var/log -mindepth 1 -mtime +7 -delete
fi
# Installation des dépendances composer
echo COMPOSER = Install
composer install --no-interaction
# Permissions
echo PERMISSIONS
./bin/perm.sh www-data
echo