Skip to content
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

Installing Wordpress in public root #54

Open
bravomediamats opened this issue Feb 14, 2022 · 0 comments
Open

Installing Wordpress in public root #54

bravomediamats opened this issue Feb 14, 2022 · 0 comments

Comments

@bravomediamats
Copy link

bravomediamats commented Feb 14, 2022

This has been discussed multiple times, and the solution with a composer script to copy the contents from a subfolder into root will work just fine.
I just wanted to share a discovery with composer config-settings that might help somebody.

If i specify that the vendor-dir should be hosted within the same folder as the wordpress-install-dir, composer does not remove the contents of the folder.

For eg. this composer.json:
{ "config": { "vendor-dir": "public/vendor" }, "require": { "johnpbloch/wordpress": "^5.9" }, "extra": { "wordpress-install-dir": "public" } }

That being said, the vendor folder should not be hosted within the public folder. But since this setting does not remove the contents of the public folder when installing wordpress there, then there might be some other setting to achieve the same result?

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

No branches or pull requests

1 participant