Skip to content

Commit

Permalink
Fix roots#353 - Allow insecure curl reqs for cron
Browse files Browse the repository at this point in the history
In development with an https site, the curl command for WP cron will
fail due to the "insecure" self-signed certificate.

Adding the `-k` flag means curl will ignore this and continue on.
  • Loading branch information
swalkinshaw authored and primozcigler committed Mar 10, 2016
1 parent f57e9c2 commit f3984d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### HEAD
* Fixes #353 - Allow insecure curl reqs for cron ([#450](https://github.com/roots/trellis/pull/450))
* Fixes #374 - Remove composer vendor/bin from $PATH ([#449](https://github.com/roots/trellis/pull/449))
* Fixes #436 - Let WP handle 404s for PHP files ([#448](https://github.com/roots/trellis/pull/448))
* Fixes #297 - Use `php_flag` vs `php_admin_flag` ([#447](https://github.com/roots/trellis/pull/447))
Expand Down
2 changes: 1 addition & 1 deletion roles/wordpress-setup/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
name: "{{ item.key }} WordPress cron"
minute: "*/15"
user: "{{ web_user }}"
job: "curl -s {{ item.value.env.wp_siteurl }}/wp-cron.php > /dev/null 2>&1"
job: "curl -k -s {{ item.value.env.wp_siteurl }}/wp-cron.php > /dev/null 2>&1"
cron_file: "wordpress-{{ item.key | replace('.', '_') }}"
with_dict: wordpress_sites
when: item.value.env.disable_wp_cron | default(false) and not item.value.multisite.enabled | default(false)

0 comments on commit f3984d0

Please sign in to comment.