-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wp-env: Add multi-site alternative. #67852
Conversation
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
Size Change: 0 B Total Size: 1.83 MB ℹ️ View Unchanged
|
@@ -80,6 +119,14 @@ module.exports = async function initConfig( { | |||
yaml.dump( dockerComposeConfig ) | |||
); | |||
|
|||
// Add multisite .htaccess if multisite is enabled | |||
if ( config.env.multisite ) { | |||
await writeMultisiteHtaccess( '/var/www/html' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a drive-by remark (I'm on my phone and I'll have a better look in the morning), but isn't this saving to the host's own filesystem? Isn't there a path.join missing, or a docker-compose mount missing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The path join is added in line 48. It is creating the file on the Dockerfile.
Closing the PR as duplicated. |
What?
Alternative to #67845
Why?
Learning, I discovered the other PR just after this one was "working". #67845 is more complete, but I'll leave this one closed just for learning purposes and to not "trash" a day of work 😆