No description
Find a file
2023-07-06 11:21:30 +02:00
.vscode force add .vscode/settings.json 2023-06-30 14:59:47 +02:00
app Closes #5 Remove kwaadpepper Handler and add sentry 2023-07-06 10:52:02 +02:00
bootstrap Init 2020-12-01 17:02:10 +01:00
clients Client bumped to 3.0.6 2023-06-30 15:02:45 +02:00
config Closes #5 Remove kwaadpepper Handler and add sentry 2023-07-06 10:52:02 +02:00
database Fixes #2 use isoFormat instead of format 2023-06-30 15:09:50 +02:00
MIG CRM Migrate from old CRM (Le Gaulois) 2021-04-19 10:51:27 +02:00
public remove mix manifest 2023-06-26 10:30:09 +02:00
resources fix logout event in the header 2023-07-06 10:59:37 +02:00
routes Add Api Remove single optin using hashcode 2023-06-30 14:59:48 +02:00
storage - Add Arcada outgoingMail 2021-02-19 16:32:08 +01:00
tests Fixes #2 use isoFormat instead of format 2023-06-30 15:09:50 +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 upgrade project sass/ts/stylelint/eslint/vue 2023-06-12 17:46:18 +02:00
.env.example Closes #5 Remove kwaadpepper Handler and add sentry 2023-07-06 10:52:02 +02: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 upgrade project sass/ts/stylelint/eslint/vue 2023-06-12 17:46:18 +02:00
.gitattributes Init 2020-12-01 17:02:10 +01:00
.gitignore upgrade project sass/ts/stylelint/eslint/vue 2023-06-12 17:46:18 +02:00
.gitlab-ci.yml remove docker build from gitlab-ci 2023-06-30 15:02:46 +02:00
.gitmodules mini fix 2023-06-12 15:26:11 +02:00
.styleci.yml Init 2020-12-01 17:02:10 +01:00
.stylelintrc.json upgrade project sass/ts/stylelint/eslint/vue 2023-06-12 17:46:18 +02:00
artisan Init 2020-12-01 17:02:10 +01:00
composer.json Closes #5 Remove kwaadpepper Handler and add sentry 2023-07-06 10:52:02 +02:00
composer.lock Closes #5 Remove kwaadpepper Handler and add sentry 2023-07-06 10:52:02 +02:00
Dockerfile Add some missing files 2023-06-30 15:02:46 +02:00
package-lock.json remove cdn print-js to import it 2023-06-26 12:16:17 +02:00
package.json remove cdn print-js to import it 2023-06-26 12:16:17 +02:00
phpcs.xml Version 3.0.0 2022-01-06 12:11:05 +01:00
phpunit.xml Version 3.0.0 2022-01-06 12:11:05 +01: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 Version 3.0.0 2022-01-06 12:11:05 +01:00
tsconfig.json remove cdn print-js to import it 2023-06-26 12:16:17 +02:00
webpack.mix.js rename compile files 2023-06-26 11:59:20 +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