php-censor/docs/en/workers/daemon.md
2017-01-04 19:22:20 +07:00

978 B

Run Builds Using a Daemon

The PHP Censor daemon runs in the background on your server and continuously checks for new builds. Unless already running a build, the daemon should pick up and start running new builds within seconds of being created.

The daemon is also useful if you want to run multiple PHP Censor workers in a virtualised environment (i.e. Docker)

If you want to run PHP Censor builds on a regular schedule instead, you should set up a cron-job.

Starting the Daemon

On a Linux/Unix server, the following command will start the daemon and keep it running even when you log out of the server:

nohup php ./daemonise php-censor:daemonise >/dev/null 2>&1  &

If you need to debug what's going on with your builds, you can also run the daemon directly using the following command, which will output the daemon's log directly to your terminal:

php daemonise php-censor:daemonise