-
-
Notifications
You must be signed in to change notification settings - Fork 11
Added cron example for WordPress in readme, fixes #34 #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added cron example for WordPress in readme, fixes #34 #35
Conversation
|
Fixes #34 |
|
How wonderful, what is the next step now, do I need to do something on my side? |
|
Thank you for the PR @natanael-oliveira . I've never used WP so it was a good oppurtinuty to test the guides. After following your PR, it does create Is this something I should be worried about? |
|
@tyler36 Can you send me a complete screenshot of your wp-config.php file? From my experience it seems that there is a configuration missing from this file, but nothing related to the change I made. |
|
I uploaded the file as a gist: https://gist.github.com/tyler36/d0cccbaf3ddd4f5c420aeb3f19ca40c0 |
|
So @tyler36 from what I saw your wp-config file is missing the database connection entries, but as you can you are using ddev it usually also creates another connection file called wp-config-ddev.php, but basically you need have these definitions for connecting to the bank, I will leave an example code: `<?php
// ** Database settings - You can get this info from your web host ** // /** Database username */ /** Database password */ /** Database hostname */ /** Database charset to use in creating database tables. */ /** The database collate type. Don't change this if in doubt. */ /**#@+
/**#@-*/ /**
/**
/* Add any custom values between this line and the "stop editing" line. */ /* That's all, stop editing! Happy publishing. */ /** Absolute path to the WordPress directory. */ /** Sets up WordPress vars and included files. */ |
|
@natanael-oliveira thanks for the update. And thanks for the PR. |
It's a little help, lately I needed to add the WordPress cron to DDEV-CRON and I had a lot of difficulty, here is a simple example. Added the cron example for WordPress in the readme.
Basically it will run the WordPress scheduler every 15 minutes and will also create a log file in the root of the project. If you didn't want the log file to be created, just remove this part of the code
2>&1 | tee -a /var/www/html/cron.logPrint(01) Change

Print(02, 03) Test
