php-censor/docs/en/workers/cron.md
Dmitry Khomutov 320a249153 Improved docs
2016-07-19 15:22:22 +06:00

18 lines
691 B
Markdown

Run Builds Using Cron
---------------------
Running builds using cron is a quick and simple method of getting up and running with PHPCI. It also removes the need for PHPCI to be running all the time.
If you want a little more control over how PHPCI runs, you may want to [set up the PHPCI daemon](workers/daemon.md) instead.
Setting up the Cron Job
=======================
You'll want to set up PHPCI to run as a regular cronjob, so run `crontab -e` and enter the following:
```sh
* * * * * /usr/bin/php /path/to/phpci/console phpci:run-builds
```
**Note:** Make sure you change the `/path/to/phpci` to the directory in which you installed PHPCI, and update the PHP path if necessary.