Skip to content
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

Unable to add file to /wordpress/ folder using bootWordPress #1486

Open
bgrgicak opened this issue Jun 5, 2024 · 0 comments
Open

Unable to add file to /wordpress/ folder using bootWordPress #1486

bgrgicak opened this issue Jun 5, 2024 · 0 comments
Assignees
Labels
[Aspect] Filesystem [Feature] Boot Flow [Type] Bug An existing feature does not function as intended

Comments

@bgrgicak
Copy link
Collaborator

bgrgicak commented Jun 5, 2024

When calling bootWordPress we can't use createFiles to add files to the /wordpress/ folder.

For example, if we would update this bootWordPress config by adding another entry to createFiles:

'/wordpress': {
	'test.php': '<?php echo "Hello, World!";',
},

This would result in an error.

Error: Could not move /tmp/unzipped-wordpress to /wordpress: Directory not empty.
    at _FSHelpers.mv (fs-helpers.ts:109:10)
    at PHP.mv (php.ts:885:20)
    at unzipWordPress (index.ts:261:7)
    at async bootWordPress (boot.ts:68:5)
    at async worker-thread.ts?type=module&worker_file=&wpVersion=6.5&phpVersion=8.0&php-extension=iconv&php-exte…:150:26

We prevent WordPress from mounting by writing a file to /wordpress/ before it's mounted.

@bgrgicak bgrgicak added [Type] Bug An existing feature does not function as intended [Aspect] Filesystem [Feature] Boot Flow labels Jun 5, 2024
@bgrgicak bgrgicak added this to the Boot Protocol milestone Jun 5, 2024
@adamziel adamziel mentioned this issue Jun 28, 2024
1 task
@adamziel adamziel moved this to Needs Triage/Our Reply in Playground Board Jul 1, 2024
@adamziel adamziel moved this from Needs Triage/Our Reply to Up next in Playground Board Jul 1, 2024
@adamziel adamziel self-assigned this Jul 3, 2024
@adamziel adamziel removed this from the Boot Protocol milestone Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Aspect] Filesystem [Feature] Boot Flow [Type] Bug An existing feature does not function as intended
Projects
Archived in project
Development

No branches or pull requests

2 participants