add recipe for Dukecity\CommandSchedulerBundle. it is a copy of JMose\CommandSchedulerBundle which seems abandoned

This commit is contained in:
Christopher Georg
2021-03-19 21:01:53 +01:00
parent a8e030d0cb
commit 217fd5fb59
4 changed files with 43 additions and 0 deletions
@@ -0,0 +1,19 @@
# See full configuration at
# https://github.com/Dukecity/CommandSchedulerBundle/wiki/Configuration
dukecity_command_scheduler:
# Scheduler will write output files here. set false to disable it.
log_path: "%kernel.logs_dir%"
# Add namespace you don't want to see its Command in the scheduler.
excluded_command_namespaces:
- _global
- scheduler
- server
- container
- config
- generate
- init
- router
- doctrine
- debug
@@ -0,0 +1,3 @@
dukecity_command_scheduler:
resource: "@DukecityCommandSchedulerBundle/Resources/config/routing.php"
prefix: /
@@ -0,0 +1,8 @@
{
"bundles": {
"Dukecity\\CommandSchedulerBundle\\DukecityCommandSchedulerBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}
@@ -0,0 +1,13 @@
<bg=blue;fg=white> </>
<bg=blue;fg=white> What's next for DukecityCommandSchedulerBundle ? </>
<bg=blue;fg=white> </>
* <fg=blue>Update your DB schema</>
1. php bin/console make:migration
2. php bin/console doctrine:migrations:migrate
* <fg=red;fg=white>Secure / Configure</> your application:
1. Secure your route by adding <comment>- { path: ^/command-scheduler, role: ROLE_ADMIN }</> in your security config.
2. Set the single-entry point in crontab : <comment>* * * * * php /your_app/bin/console scheduler:execute</>
* <fg=blue>Schedule</> your commands at <comment>http://your-app/command-scheduler/list</>