mirror of
https://github.com/TrentSPalmer/hugo_themes_report.git
synced 2024-12-04 16:41:31 -08:00
add cron example to test/README.md
This commit is contained in:
parent
7b20f9206f
commit
f97fe8b9de
@ -18,3 +18,12 @@ Or run a specific test function in a specific class in a specific file
|
|||||||
```python
|
```python
|
||||||
python3 -m unittest test.test_title.TestTitle.test_title_anchor
|
python3 -m unittest test.test_title.TestTitle.test_title_anchor
|
||||||
```
|
```
|
||||||
|
|
||||||
|
cron example everyday at 6am
|
||||||
|
```bash
|
||||||
|
#!/bin/bash
|
||||||
|
PATH=/usr/local/bin:/usr/bin:/bin
|
||||||
|
0 4 * * * cd <project directory> && <rsync the db file>
|
||||||
|
0 5 * * * cd <project directory> && <rsync the html output directory>
|
||||||
|
0 6 * * * cd <project directory> && bash -c 'echo "$((python3 -m unittest)2>&1)"' | sendxmpp <sendxmpp params>
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user