mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-09 06:17:52 +00:00
move crontab configuration example to the config directory
This commit is contained in:
parent
bf976058c8
commit
3917ca8d4f
16
README.md
16
README.md
@ -37,21 +37,7 @@ sphinxsearch
|
|||||||
* Install [Sphinx Search Server](https://sphinxsearch.com)
|
* Install [Sphinx Search Server](https://sphinxsearch.com)
|
||||||
* Configuration examples are placed at `/config` folder
|
* Configuration examples are placed at `/config` folder
|
||||||
* Make sure `/storage` folder is writable
|
* Make sure `/storage` folder is writable
|
||||||
* Set up the `/crontab` scripts by following [examples](https://github.com/YGGverse/YGGo#crontab)
|
* Set up the `/crontab` scripts by following [example](https://github.com/YGGverse/YGGo/blob/main/config/crontab.txt)
|
||||||
|
|
||||||
#### Configuration
|
|
||||||
|
|
||||||
##### Crontab
|
|
||||||
|
|
||||||
```
|
|
||||||
@reboot searchd
|
|
||||||
@reboot indexer --all --rotate
|
|
||||||
|
|
||||||
0 * * * * indexer --all --rotate
|
|
||||||
|
|
||||||
0 0 * * * cd /YGGo/crontab && php cleaner.php > /dev/null 2>&1
|
|
||||||
* * * * * cd /YGGo/crontab && php crawler.php > /dev/null 2>&1
|
|
||||||
```
|
|
||||||
|
|
||||||
#### JSON API
|
#### JSON API
|
||||||
|
|
||||||
|
7
config/crontab.txt
Normal file
7
config/crontab.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
@reboot searchd
|
||||||
|
@reboot indexer --all --rotate
|
||||||
|
|
||||||
|
0 * * * * indexer --all --rotate
|
||||||
|
|
||||||
|
0 0 * * * cd /YGGo/crontab && php cleaner.php > /dev/null 2>&1
|
||||||
|
* * * * * cd /YGGo/crontab && php crawler.php > /dev/null 2>&1
|
Loading…
Reference in New Issue
Block a user