WordPress / playground-tools

GNU General Public License v2.0
127 stars 38 forks source link

wp-now: wp-cli step doesnt work in wp-content mode #304

Open lgersman opened 2 weeks ago

lgersman commented 2 weeks ago

the wp-cli step will throw an error when in wp-content mode.

Error: Could not write to "/wordpress/run-cli.php": There is no such file or directory OR the parent directory does not exist.
    at descriptor.value (/home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@php-wasm+node@0.6.13/node_modules/@php-wasm/node/index.cjs:72672:17)
    at Object.wpCLI$1 [as wp-cli] (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@wp-playground+blueprints@0.6.13/node_modules/@wp-playground/blueprints/index.js:1209:87)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async o (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@wp-playground+blueprints@0.6.13/node_modules/@wp-playground/blueprints/index.js:9413:30)
    at async Object.run (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@wp-playground+blueprints@0.6.13/node_modules/@wp-playground/blueprints/index.js:9340:23)
    at async runBlueprintSteps (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@wp-playground+blueprints@0.6.13/node_modules/@wp-playground/blueprints/index.js:9448:3)
    at async startWPNow (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@wp-now+wp-now@0.1.72/node_modules/@wp-now/wp-now/main.js:662:5)
    at async startServer (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@wp-now+wp-now@0.1.72/node_modules/@wp-now/wp-now/main.js:926:42)
    at async Object.handler (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@wp-now+wp-now@0.1.72/node_modules/@wp-now/wp-now/main.js:1107:25) {
  [cause]: [<generic error, no stack>] {
    name: 'ErrnoError',
    node: undefined,
    setErrno: [Function (anonymous)],
    errno: 44,
    message: 'FS error'
  }
}
Error: Error when executing the blueprint step #2 ({"step":"wp-cli","command":"wp plugin activate --all"}) : Could not write to "/wordpress/run-cli.php": There is no such file or directory OR the parent directory does not exist.
    at Object.run (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@wp-playground+blueprints@0.6.13/node_modules/@wp-playground/blueprints/index.js:9343:37)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runBlueprintSteps (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@wp-playground+blueprints@0.6.13/node_modules/@wp-playground/blueprints/index.js:9448:3)
    ... 2 lines matching cause stack trace ...
    at async Object.handler (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@wp-now+wp-now@0.1.72/node_modules/@wp-now/wp-now/main.js:1107:25) {
  [cause]: Error: Could not write to "/wordpress/run-cli.php": There is no such file or directory OR the parent directory does not exist.
      at descriptor.value (/home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@php-wasm+node@0.6.13/node_modules/@php-wasm/node/index.cjs:72672:17)
      at Object.wpCLI$1 [as wp-cli] (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@wp-playground+blueprints@0.6.13/node_modules/@wp-playground/blueprints/index.js:1209:87)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async o (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@wp-playground+blueprints@0.6.13/node_modules/@wp-playground/blueprints/index.js:9413:30)
      at async Object.run (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@wp-playground+blueprints@0.6.13/node_modules/@wp-playground/blueprints/index.js:9340:23)
      at async runBlueprintSteps (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@wp-playground+blueprints@0.6.13/node_modules/@wp-playground/blueprints/index.js:9448:3)
      at async startWPNow (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@wp-now+wp-now@0.1.72/node_modules/@wp-now/wp-now/main.js:662:5)
      at async startServer (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@wp-now+wp-now@0.1.72/node_modules/@wp-now/wp-now/main.js:926:42)
      at async Object.handler (file:///home/lgersman/workspace/playground-contribution-day/node_modules/.pnpm/@wp-now+wp-now@0.1.72/node_modules/@wp-now/wp-now/main.js:1107:25) {
    [cause]: [<generic error, no stack>] {
      name: 'ErrnoError',
      node: undefined,
      setErrno: [Function (anonymous)],
      errno: 44,
      message: 'FS error'
    }
  }
}
Failed to start the server: Error when executing the blueprint step #2 ({"step":"wp-cli","command":"wp plugin activate --all"}) : Could not write to "/wordpress/run-cli.php": There is no such file or directory OR the parent directory does not exist.

image