From c0e71733262589100f3151450c82713581406d6a Mon Sep 17 00:00:00 2001 From: Baptiste Lemoine Date: Wed, 20 Nov 2019 11:32:38 +0100 Subject: [PATCH] :book: doc to add crontab job --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 0bd1839..43c94e4 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,14 @@ initiate the database ```bash php bin/console doctrine:schema:create ``` +## cronjob to delete expired polls +add this line in your crontab to run the clearance of expired polls everyday at 0h00. +``` +0 0 * * * wget http://MYWEBSITE/api/v1/clean-polls +``` +you can open your crontabl in command line with +crontab -e + # About made by B. Lemoine, aka Tykayn, for the framadate funky front end project, a polling libre software.