Incompatibilities with VIP's dev-env
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 84/100
Research direction
Start by checking .gitignore and mu-plugins/001-composer.php, then reproduce the setup with WordPress VIP's dev-env and the repository as the wp-content folder. Done means .wpvip/vip-dev-env.yml is ignored and 001-composer.php no longer attempts to read an inaccessible composer.json; rerun the site load to confirm the error is gone.
Written by the indexing model from the issue text.
Description
Description of the bug
There are a few things about how this repo is set up that makes it not work properly with VIP's dev-env out of the box:
.wpvip/vip-dev-env.ymlisn't gitignored, and this file will end up being unique to each user (due to user-specific paths)mu-plugins/001-composer.phpattempts to readcomposer.json, which isn't readable on VIP's dev-env
We should add .wpvip/vip-dev-env.yml to the .gitignore and we should add a guard in 001-composer.php so that it doesn't attempt to read a file that it can't access.
Steps To Reproduce
- Create a repo using this template repo as a basis.
- Run the setup steps and choose WordPress VIP as the target.
- Create a local dev environment using VIP's dev-env.
- Use the repo you created as the wp-content folder.
- Run
composer installto install dependencies. - Attempt to load the site in a browser and notice that there is an error message about not being able to access composer.json.
Additional Information
No response
- Dominant language
- PHP
- Stars
- 9
- Forks
- 3
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from alleyinteractive/create-wordpress-project
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
All issues in alleyinteractive/create-wordpress-project
Similar issues
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/fulltextsearch#1011 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
phpstan/phpstan-doctrine#794 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Automattic/static-site-importer#1767 ·