Skip to content

Conversation

@Beee4life
Copy link

Suggestion to move the $webroot definition after WP_ENV has been defined, so you can use a different web root folder, based on the WP_ENV value.

Example: Locally my public html folder is always called /web but my server has set /public_html as web root. So I always change it to this:

$webroot_dir = 'development' === WP_ENV ? $root_dir . '/web' : $root_dir . '/public_html';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant