diff --git a/dukecity/command-scheduler-bundle/3.0/config/packages/scheduler.yaml b/dukecity/command-scheduler-bundle/3.0/config/packages/scheduler.yaml new file mode 100644 index 00000000..95c91945 --- /dev/null +++ b/dukecity/command-scheduler-bundle/3.0/config/packages/scheduler.yaml @@ -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 diff --git a/dukecity/command-scheduler-bundle/3.0/config/routes/scheduler.yaml b/dukecity/command-scheduler-bundle/3.0/config/routes/scheduler.yaml new file mode 100644 index 00000000..3fc2a20f --- /dev/null +++ b/dukecity/command-scheduler-bundle/3.0/config/routes/scheduler.yaml @@ -0,0 +1,3 @@ +dukecity_command_scheduler: + resource: "@DukecityCommandSchedulerBundle/Resources/config/routing.php" + prefix: / diff --git a/dukecity/command-scheduler-bundle/3.0/manifest.json b/dukecity/command-scheduler-bundle/3.0/manifest.json new file mode 100644 index 00000000..794ddb46 --- /dev/null +++ b/dukecity/command-scheduler-bundle/3.0/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Dukecity\\CommandSchedulerBundle\\DukecityCommandSchedulerBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} diff --git a/dukecity/command-scheduler-bundle/3.0/post-install.txt b/dukecity/command-scheduler-bundle/3.0/post-install.txt new file mode 100644 index 00000000..66907997 --- /dev/null +++ b/dukecity/command-scheduler-bundle/3.0/post-install.txt @@ -0,0 +1,13 @@ + + What's next for DukecityCommandSchedulerBundle ? + + + * Update your DB schema + 1. php bin/console make:migration + 2. php bin/console doctrine:migrations:migrate + + * Secure / Configure your application: + 1. Secure your route by adding - { path: ^/command-scheduler, role: ROLE_ADMIN } in your security config. + 2. Set the single-entry point in crontab : * * * * * php /your_app/bin/console scheduler:execute + + * Schedule your commands at http://your-app/command-scheduler/list