Commit a08331eb by Damien Moulard

update export and upload data script & doc

parent 0ca827e5
...@@ -201,6 +201,10 @@ Quand CCAS_MODE = 1, pour que les reconversions CCAS soient effectuées et les e ...@@ -201,6 +201,10 @@ Quand CCAS_MODE = 1, pour que les reconversions CCAS soient effectuées et les e
57 1 1 * * kohinos php /home/kohinos/kohinos/bin/console kohinos:ssa:export-ccas-transactions 57 1 1 * * kohinos php /home/kohinos/kohinos/bin/console kohinos:ssa:export-ccas-transactions
27 2 10 * * kohinos rm -f /home/kohinos/kohinos/ccastransactions/* 27 2 10 * * kohinos rm -f /home/kohinos/kohinos/ccastransactions/*
Pour activer l'export de données vers un serveur distant :
0 0 1 * * kohinos php /home/kohinos/kohinos/bin/console kohinos:ssa:export-and-upload-data
## Lancer le Kohinos en local ## Lancer le Kohinos en local
Installer le client symfony Installer le client symfony
......
...@@ -842,7 +842,7 @@ services: ...@@ -842,7 +842,7 @@ services:
tags: tags:
- { name: 'kernel.event_listener', event: 'security.interactive_login' } - { name: 'kernel.event_listener', event: 'security.interactive_login' }
App\Command\ExportAdherentsDataCommand: App\Command\ExportAndUploadDataCommand:
arguments: arguments:
$host: '%export.ssh.host%' $host: '%export.ssh.host%'
$user: '%export.ssh.user%' $user: '%export.ssh.user%'
......
...@@ -12,9 +12,9 @@ use App\Entity\Adherent; ...@@ -12,9 +12,9 @@ use App\Entity\Adherent;
use App\Entity\Prestataire; use App\Entity\Prestataire;
use App\Entity\Flux; use App\Entity\Flux;
class ExportAdherentsDataCommand extends Command class ExportAndUploadDataCommand extends Command
{ {
protected static $defaultName = 'app:ssa:export-adherents-data'; protected static $defaultName = 'kohinos:ssa:export-and-upload-data';
protected $em; protected $em;
private LoggerInterface $logger; private LoggerInterface $logger;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment