📖 doc to add crontab job

This commit is contained in:
Baptiste Lemoine 2019-11-20 11:32:38 +01:00
parent 2c113e9e23
commit c0e7173326
1 changed files with 8 additions and 0 deletions

View File

@ -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.