Skip to content

Local Environment: Unable to run two projects at the same time #324

@danielbachhuber

Description

@danielbachhuber

Steps to reproduce:

  1. Run wp-now start in one project.
  2. Run wp-now start in a second project.
  3. Open the localhost URL for the first project and observe it redirect to the second project.

The problem is that ~/.wp-now/wordpress-versions/latest has a hardcoded file:

$ cat playground-consts.json
{"WP_HOME":"http://127.0.0.1:8883","WP_SITEURL":"http://127.0.0.1:8883","WP_AUTO_UPDATE_CORE":true}

We might want to virtualize wp-config.php entirely so we can define constants on the fly, etc. Alternatively, the configuration details should live in the project's wp-content directory (e.g. ~/.wp-now/wp-content/gutenberg-f423215415c76d74a97bec1bcfb0e3d4afe8d8e5)

cc @adamziel

Done is:

Metadata

Metadata

Assignees

Labels

[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions