wordpress-playground icon indicating copy to clipboard operation
wordpress-playground copied to clipboard

[Package][@wp-playground] CLI: server with `--mount=.:/wordpress/wp-content/` redirects to /wp-admin/install.php

Open sntran opened this issue 5 months ago • 3 comments

Hello,

I came from @wp-now/wp-now where it auto detects my project structure and runs in wp-content mode.

Seeing that @wp-now/wp-now is being deprecated, I switched to @wp-playground/[email protected].

To get back to the old behaviour, I set --mount=.:/wordpress/wp-content/.

I expected to see the WordPress front page at "http://localhost:9400" like when I ran without the --mount flag.

Instead, I was redirected to "http://127.0.0.1:9400/wp-admin/install.php".

This also has a side effect that all blueprint steps will fail, as the database has not been set up completely.

Update: Using --mount-before-install.:/wordpress/wp-content/ works as expected. I just don't like all the extra default stuffs being added to my local filesystem.

sntran avatar Jul 24 '25 18:07 sntran