I have finally deployed my site. Now i got a blank page that says: The site is experiencing technical difficulties. I checked my error logs and get the following error: “/www/oursitename/public/current/web” failed (2: No such file or directory), client: 126.96.36.199, server: oursitename.kinsta.cloud, request: “HEAD /?kinsta-monitor HTTP/1.0”, host: “oursitenamel.kinsta.cloud”.
I guess I must have done something wrong in my trellis setup.
I also dont understand where my bedrock files are located on the server. WP is installed. I can access wp admin and the mu-plugins are there. But no DB and Plugins etc. Maybe again something is wrong with our database - that happened before on the development enevironment and I had to manually import it with wp cli. Any help is super appreciated.
Trellis deployment doesn’t automatically transfer your database. You’ll always need to move it manually.
If you aren’t seeing any plugins, then they probably aren’t being tracked by Composer (i.e. perhaps you installed them manually on dev, or used the WordPress plugin installer). Make sure that you’ve added your plugins as dependencies in
If you’re having trouble w/ deploying to Kinsta, double-check that you’ve followed all of Ben’s instructions: https://kinsta.com/blog/bedrock-trellis/ It sounds like you may have missed this one:
The last thing you need to do is inform Kinsta of what to set the document root to. Hop on MyKinsta and ask the support team for your document root be updated to
Ok. Yeah I had asked them to do that. Currently the public directory is empty.
But one more question. Where are all my bedrock files on the server located?
Shouldnt they be in the “srv” directory?
That location is empty and i find this super confusing. Especially cause I cant find my database that I had commited with the project.
Your Bedrock files will be in the
public directory. I’m not sure why you’d think they’d be in
srv. This step in the instructions is where you tell Trellis to put them:
trellis/group_vars/production/main.ymland add the following to the end of the file:
project_root: /www/example_123/public www_root: /www/example_123/public web_user: example web_group: www-data
Yeah my very stupid mistake is to confuse the live and staging environments. I deployed staging, but logged via ssh into live kinsta environment. GOSH!
This topic was automatically closed after 42 days. New replies are no longer allowed.