# Deploy fail when invoke 'wp core is-installed' command

**URL:** https://discourse.roots.io/t/deploy-fail-when-invoke-wp-core-is-installed-command/26528
**Category:** trellis
**Tags:** deploys, trellis-cli, ansible, trellis
**Created:** 2024-01-11T12:10:47Z
**Posts:** 24
**Showing post:** 2 of 24

## Post 2 by @strarsis — 2024-01-11T13:32:50Z

This could be the same issue as this one:

> [@Deploy fails at 'Wordpress Installed?'](https://discourse.roots.io/t/deploy-fails-at-wordpress-installed/20888/23):
>
> Thanks for the help everyone. Just wanted to close the loop on this in case anyone stumbles across this with an error of their own. It turns out I had an issue in my production environment config file, which makes sense as to why it worked on staging and not production. I was using env() to get a environment variable, switching to getenv() has fixed it.

This could also help with finding the underlying error:  
[https://discourse.roots.io/t/wordpress-6-0-update-deploy-failed/23225/43?u=strarsis](https://discourse.roots.io/t/wordpress-6-0-update-deploy-failed/23225/43)

---

_[View the full topic](https://discourse.roots.io/t/deploy-fail-when-invoke-wp-core-is-installed-command/26528)._
