I just deployed a WordPress site using Bedrock and Sage, but after deployment, all Iam getting is a blank white screen when trying to access the site.
The admin panel is also not loading. I have checked my server logs, but nothing obvious stands out.
I have already tried clearing the cache, restarting services, running `composer install and verifying my PHP and Nginx/Apache settings. Could this be related to Blade templates, missing dependencies, or a Trellis misconfiguration?
Has anyone else faced this issue after deployment? Any suggestions on debugging this would be really helpful! Thanks in advance!
If WP_ENV in .env is not already set to ”development”, you may get more details on screen if you make that change (also check config/development.php to make sure it has been set up to display errors…
Otherwise I suggest you start debugging using dd() and dump(). starting in web/index.php to make sure that file is executed.
Thanks for your response. Since I’m facing a white screen issue after deploying with Bedrock and Sage, I wil check the logs again for clues. Could you clarify which specific logs might be most useful? Also, could you provide details on the **after-deploy script I should run?
Check out your trellis/deploy-hooks/build-after.yml. There is a command that needs to be uncommented after the first deploy and then you need to redeploy again to run it.
As far as which logs to check, I’d checkout your error logs. Off the top of my head, it’s in the current directory of your remote server.
Correction: it’s in the directory named after your domain. So “/srv/www/your-domain”. You should find the logs there.