File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 10
10
# 2>&1 redirects the output include both the Standard Error and Standard Out. Look details https://tldp.org/LDP/abs/html/io-redirection.html
11
11
12
12
# Example
13
- # * * * * * [flock -n <path-to-lck-file>] <some-command> >><path-to-log-file> 2>&1
14
- # * * * * * [flock -n <path-to-lck-file>] <some-command> >/dev/null 2>&1
13
+ # * * * * * [flock -n <path-to-lck-file>] <some-command> >> <path-to-log-file> 2>&1
14
+ # * * * * * [flock -n <path-to-lck-file>] <some-command> > /dev/null 2>&1
15
15
16
16
17
17
18
18
# Let's run!
19
19
20
20
# WordPress cron run by system cron
21
- */30 * * * * docker exec ${APP_NAME}_wordpress flock -n /var/log/wordpress/wp-cron.lck php /var/www/html/wp-cron.php >> /var/log/cron.log 2>&1
21
+ */10 * * * * docker exec ${APP_NAME}_wordpress flock -n /var/log/wordpress/wp-cron.lck php /var/www/html/wp-cron.php >> /var/log/cron.log 2>&1
22
22
23
23
24
24
# Backup database and media
Original file line number Diff line number Diff line change 24
24
25
25
26
26
# App info
27
- APP_NAME=YourAppName
27
+ APP_NAME=your_app_name
28
28
APP_TYPE=wordpress
29
29
30
30
You can’t perform that action at this time.
0 commit comments