No description
- PHP 78%
- Twig 17.1%
- JavaScript 3.5%
- Shell 0.5%
- CSS 0.5%
- Other 0.4%
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| assets | ||
| bin | ||
| config | ||
| docker/db | ||
| frankenphp | ||
| migrations | ||
| public | ||
| scripts | ||
| SQL | ||
| src | ||
| templates | ||
| tests | ||
| translations | ||
| .dockerignore | ||
| .editorconfig | ||
| .env | ||
| .env.test | ||
| .gitignore | ||
| Caddyfile | ||
| compose.override.yaml | ||
| compose.yaml | ||
| composer.json | ||
| composer.lock | ||
| dc | ||
| Dockerfile | ||
| importmap.php | ||
| mago.toml | ||
| phpstan.dist.neon | ||
| phpunit.dist.xml | ||
| README.md | ||
| release.sh | ||
| symfony.lock | ||
PanneauPub
Installation
./dc up -d
./dc exec php composer install
./dc exec php bin/console doctrine:migrations:migrate
Anti-spam & Maintenance
Une commande de purge des avis non confirmés est disponible. Il est recommandé de la planifier toutes les heures.
Purge des avis non confirmés (> 24h)
bin/console app:avis:purge
Planification (Cron)
Ajoutez la ligne suivante à votre crontab pour une exécution toutes les heures :
0 * * * * /path/to/project/bin/console app:avis:purge >> /path/to/project/var/log/purge.log 2>&1
Si vous utilisez Docker, vous pouvez utiliser :
0 * * * * docker exec panneau-pub-php bin/console app:avis:purge