Skip to content

Installing Wordpress in public rootΒ #54

@bravomediamats

Description

@bravomediamats

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions