No description
Find a file
2024-06-05 11:23:26 +02:00
.vscode Hudge bump to LaravelBaseProject 2023-10-06 16:37:30 +02:00
app phpcs 2023-10-06 16:37:31 +02:00
bootstrap Init 2020-12-01 17:02:10 +01:00
client@0f95357f46 Hudge bump to LaravelBaseProject 2023-10-06 16:37:30 +02:00
config Hudge bump to LaravelBaseProject 2023-10-06 16:37:30 +02:00
database Hudge bump to LaravelBaseProject 2023-10-06 16:37:30 +02:00
MIG Remove crm v1 - issue Closes #20 2023-10-06 16:33:21 +02:00
public remove mix manifest 2023-06-26 10:30:09 +02:00
resources Fix theme selector causing CSP issue 2023-10-09 10:45:00 +02:00
routes Hudge bump to LaravelBaseProject 2023-10-06 16:37:30 +02:00
storage - Add Arcada outgoingMail 2021-02-19 16:32:08 +01:00
tests Hudge bump to LaravelBaseProject 2023-10-06 16:37:30 +02:00
.browserslistrc Add some missing files 2023-06-30 15:02:46 +02:00
.dockerignore Add some missing files 2023-06-30 15:02:46 +02:00
.editorconfig bump laravel 10 - issue Closes #19 2023-10-06 16:33:22 +02:00
.env.example Add missing queue connection var into manifest 2023-12-11 17:09:41 +01:00
.env.testing.example change unit test server ip from 127.0.0.25 to 127.0.0.1 (seems to have stoped working on wsl ?) 2021-10-26 10:00:27 +02:00
.eslintrc.json Hudge bump to LaravelBaseProject 2023-10-06 16:37:30 +02:00
.gitattributes bump laravel 10 - issue Closes #19 2023-10-06 16:33:22 +02:00
.gitignore add /bootstrap to gitignore 2023-10-09 11:45:25 +02:00
.gitlab-ci.yml Hudge bump to LaravelBaseProject 2023-10-06 16:37:30 +02:00
.gitmodules Crm V4 2023-10-06 16:37:29 +02:00
.styleci.yml Init 2020-12-01 17:02:10 +01:00
.stylelintrc.json Hudge bump to LaravelBaseProject 2023-10-06 16:37:30 +02:00
artisan Init 2020-12-01 17:02:10 +01:00
composer.json add missing uwil/k8s-laravel 2023-10-09 11:04:33 +02:00
composer.lock add missing uwil/k8s-laravel 2023-10-09 11:04:33 +02:00
Dockerfile Update Dockerfile 2023-12-11 12:15:57 +01:00
jsconfig.json bump laravel 10 - issue Closes #19 2023-10-06 16:33:22 +02:00
k8s-queues.sh chore: 🧱 k8s-queues.sh: fix stopQueues sleep timer 2024-06-05 10:58:24 +02:00
manifest.yaml fix: 🧱 manifest.yaml: PreStop was not contained in lifecycle 2024-06-05 11:23:19 +02:00
package-lock.json Hudge bump to LaravelBaseProject 2023-10-06 16:37:30 +02:00
package.json Hudge bump to LaravelBaseProject 2023-10-06 16:37:30 +02:00
phpcs.xml Crm V4 2023-10-06 16:37:29 +02:00
phpunit.xml Crm V4 2023-10-06 16:37:29 +02:00
README.md Ajout config supervisor workers 2022-02-10 11:24:22 +01:00
server.php Init 2020-12-01 17:02:10 +01:00
test.sh Crm V4 2023-10-06 16:37:29 +02:00
tsconfig.json Hudge bump to LaravelBaseProject 2023-10-06 16:37:30 +02:00
vite.config.ts Hudge bump to LaravelBaseProject 2023-10-06 16:37:30 +02:00

Comment lancer les tests unitaires ?

Attention, si vous utilisez juste un .env à la place d'un .env.testing votre base de donnée de developpement sera effacée à chaque lancement des tests unitaires

Etapes :

  • cp .env.testing.example .env.testing (spécial tests unitaires)
  • php artisan key:generate
  • parameter les BDD dans le .env.testing
  • php artisan config:cache
  • git submodule init
  • git submodule update (récupérer le client)
  • composer install
  • service start mysql (votre base de donnée accessible sur 127.0.0.1:3306)
  • chmod u+x ./test.sh
  • php artisan optimize
  • composer run test

Config Supervisor 2 Fichiers :

ldccrm-worker.conf Pour les jobs en général

[program:ldccrm-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /u1/DATA01/webldc/Apps/ldccrm/ldccrm-12-2020/srcs/artisan queue:work --sleep=3 --tries=3 --max-time=3600
autostart=true
autorestart=true
startasgroup=true
killasgroup=true
user=www-data
umask=077
numprocs=8
redirect_stderr=true
stdout_logfile=/u1/DATA01/webldc/Apps/ldccrm/ldccrm-12-2020/srcs/storage/logs/worker.log
stopwaitsecs=3600

ldccrm-stats-worker.conf Pour les jobs de stats uniquement

[program:ldccrm-stats-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /u1/DATA01/webldc/Apps/ldccrm/ldccrm-12-2020/srcs/artisan queue:work --queue=stats --sleep=3 --tries=3 --max-time=3600
autostart=true
autorestart=true
startasgroup=true
killasgroup=true
user=www-data
umask=077
numprocs=1
redirect_stderr=true
stdout_logfile=/u1/DATA01/webldc/Apps/ldccrm/ldccrm-12-2020/srcs/storage/logs/worker.log
stopwaitsecs=3600