First of all, thanks for your great projects, I really like what you’re trying to achieve here.
I am new to the whole WP environment and learned about Bedrock & Trellis a week ago. I spent about a week to read docs and set up my local dev environment. I am currently developing a website on WordPress using Kinsta as a hosting provider and my goal is to set up a workflow including local dev. using trellis and deploy to Kinsta staging for tests, Kinsta live for production. So far, there seems to be a perfect fit between what I desire to do and the Trellis/Bedrock approach.
However, before actually trying to deploy on Kinsta staging, I would like to ask a few naïve questions to the roots community:
Will trellis actually (re)provision Kinsta’s servers and change their configuration? Or is trellis just used to deploy on Kinsta? Should I expect an impact in terms of performance?
Will Kinsta tools to manage my site such the ones below still work? Or should I configure everything using trellis
@ng3 has got you covered!
Just wanted to add that you should probably install the Kinsta MU Plugins. You can get a link by contacting their support. It lets you manage the cache within your site.
Note: Kinsta doesn’t enable caching on staging. If you need that you may want to ask them.
One thing I wanted to mention that I just learned moving a site to Kinsta: At least one tool (the “WP Plugins” thing in the Kinsta Dashboard) and possibly others rely on WP-CLI, which is run on the user root (I think) of your site, which is not the webroot if you’re set up to use Bedrock. This means that it won’t see the wp-cli.yml file in Bedrock, and consequently won’t be able to find your WP install and list your plugins. You can fix this super easily by just putting a wp-cli.yml file in public/that has path: current/web/wp in it. the WP-CLI command run by the Kinsta dashboard will pick up that and correctly understand where your install is.
(Putting a config.yml in ~/.wp-cli/ does not work, even though that directory is already there, so you’d think it would.)
Kinsta expects wp-cron.php under Nginx web root. However, Bedrock puts it under /wp/wp-cron.php. To fix it, SSH into your kinsta server and change it via $ crontab -e OR talk to Kinsta support.
Watch out for backups!!!
Since Bedrock puts uploads into ~/public/shared/uploads, Kinsta downloadable backup doesn’t include uploads. In other words, Kinsta downloadable backups only backup the databases.
Offloading to AWS S3 (or similar services) and backing up the bucket is a better choice.