You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting_started/install_ibexa_dxp.md
+78-18Lines changed: 78 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -379,7 +379,6 @@ Prepare a [virtual host configuration](https://en.wikipedia.org/wiki/Virtual_hos
379
379
380
380
You can use [this example vhost file](https://raw.githubusercontent.com/ibexa/post-install/main/resources/templates/nginx/vhost.template) and modify it to fit your project. You also need the `ibexa_params.d` files that should reside in a subdirectory below where the main file is, [as is shown here](https://github.com/ibexa/post-install/tree/main/resources/templates/nginx).
381
381
382
-
383
382
Specify `/<your installation directory>/public` as the `root`, or ensure `BASEDIR` is set in the environment.
384
383
Ensure `APP_ENV` is set to `prod` or `dev` in the environment, depending on the environment that you're configuring, and uncomment the line that starts with `#if[APP_ENV`.
385
384
@@ -396,36 +395,97 @@ You should see the welcome page.
396
395
397
396
See the [Security checklist](security_checklist.md) for a list of security-related issues you should take care of before going live with a project.
398
397
399
-
### Enable Date-based Publisher
398
+
### Scheduling cron jobs
399
+
400
+
The `ibexa:cron:run` command executes all service commands tagged `ibexa.cron.job`.
401
+
It should be scheduled to run every minute.
400
402
401
-
To enable delayed publishing of content items using the Date-based Publisher, you must set up cron to run the `ibexa:scheduled:run` command periodically.
402
-
This command service is tagged `ibexa.cron.job`.
403
-
The `ibexa:cron:run` executes all service commands tagged `ibexa.cron.job`.
403
+
The following example, creates a temporary file with the crontab line to appends it to existing web server's crontab, assuming the web server user is `www-data`:
404
404
405
-
For example, to check for publishing every minute, add the following script:
For [Scheduled content publications]([[= user_doc =]]/content_management/schedule_publishing/), `ibexa:scheduled:run` command service is tagged `ibexa.cron.job` with, by default, a frequency of every minute (`* * * * *`).
412
+
If needed, you can redefine this service to set up another frequency.
408
413
409
-
For 5-minute intervals:
414
+
The [CDP data export schedule](cdp_data_export_schedule.md) also uses `ibexa.cron.job` tagged services under the hood.
The `ibexa.cron.job` tag accepts the following options.
468
+
469
+
-`schedule`: A cron expression representing the period or interval.
470
+
-`options`: Arguments passed to the command, notice that the `--env` and `--siteaccess` options are passed to the command from `ibexa:cron:run` command.
471
+
-`category`: Commands can be grouped in categories, then a category can be passed with `ibexa:cron:run --category=<CATEGORY>`, by default, a `default` category is set and used.
472
+
For example, it can be used to set different jobs and `schedule` for different SiteAccesses.
473
+
-`priority`: To defined in which order the `ibexa:cron:run` run the commands that need to be.
474
+
475
+
The following command add the scheduling of `ibexa:cron:run` for a SiteAccess `minor_website` and a job category `minor_website`:
0 commit comments