Skip to content

Correct way to clone with wp in own directory #174

@hookedgeardev

Description

@hookedgeardev

Hoping to end up with multiple folders in the root, each containing a wordpress install in it's own directory.

In site/wp/wp-config.common.php I have defined the project root as up one level:

define('VP_PROJECT_ROOT', dirname(DIR, 1));

This successfully adds the .git folder to the correct location. site/.git

cloning results:

Success: Site files cloned
Success: Clone added as a remote
Success: Enabled pushing to the original repository
Success: Enabled pushing to the clone
Error: Config file does not exist. Please run wp core config first.
Error: Config file does not exist. Please run wp core config first.
Error: Config file does not exist. Please run wp core config first.
Error: Config file does not exist. Please run wp core config first.
Error: Config file does not exist. Please run wp core config first.
Error: Config file does not exist. Please run wp core config first.
Error: Config file does not exist. Please run wp core config first.
Error: Config file does not exist. Please run wp core config first.
Success: wp-config.php updated
Success: Copied VersionPress
Error: wp-config.php file not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions