-
Notifications
You must be signed in to change notification settings - Fork 43
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
wp-now: don't expect a full wp-content directory in wp-content mode #244
Comments
wp-now
in wp-content
mode expects a theme to be in place and won't apply the default WordPress theme. I had to use the installTheme
step to install twentytwentyfour
. The assumption seems to be that my wp-content
directory is complete and contains all it needs, but I'm shipping just a subset of the files in this repo. Instead of mounting wp-content
, wp-now could perhaps mount specific plugins and directories found inside wp-content
.
Yeah, this was one of the first things I tried, and I ran into this. I like option two in UX. Mount what you find and fill in anything missing. |
@mhsdef I'm exploring a Playground CLI tool that doesn't make any assumptions and only mounts and serves what you tell it to – maybe that would be useful. |
@adamziel No worries, ten minutes later, I realized i could just do this one liner and it met our needs for that particular item. 💪
|
@mhsdef - I'm working on some docs about |
@flexseth at the moment, my exact use case isn't public code (yet) and it's hacky exploratory stuff so we may not even need what we're doing now at all in the end. tl;dr: we're using a seperate frontend to directly query posts and all their HTML/CSS/JS glory on a WP Playground instance. So we run into two levels of CORS problems immediately.
For the first case, shunting in a Soooo, see #249 for more, what we do at the web server level. I think having ways to easily dial CORS both within WP and at the webserver level will be win for all the weird janky stuff we devs do. 😅 |
wp-now
inwp-content
mode expects a theme to be in place and won't apply the default WordPress theme.I had to use the
installTheme
step to installtwentytwentyfour
. The assumption seems to be that mywp-content
directory is complete and contains all it needs, but in https://github.com/adamziel/playground-docs-workflow I'm shipping just a subset of the files.I see two solutions:
wp-content/*
subdirectories would be mounted via--mount=
or so flags (or do that via Blueprints v2)wp-content
, mount specific plugins and directories found insidewp-content
.Context: The work on static site generator
The text was updated successfully, but these errors were encountered: