From 0dab46a37bb31a461462501161e73bb7afa570da Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Tue, 24 Feb 2015 16:06:38 +0000 Subject: [PATCH] Created Run Builds Using Cron (markdown) --- Run-Builds-Using-Cron.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Run-Builds-Using-Cron.md diff --git a/Run-Builds-Using-Cron.md b/Run-Builds-Using-Cron.md new file mode 100644 index 0000000..e7ce2f7 --- /dev/null +++ b/Run-Builds-Using-Cron.md @@ -0,0 +1,13 @@ +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](/Block8/PHPCI/wiki/Run-Builds-Using-a-Daemon) 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. \ No newline at end of file