mor10 / wp-codespaces-base

A fully operational WordPress container, running in Codespaces
GNU General Public License v3.0
8 stars 0 forks source link

Stand up WP-CLI in Codespaces #3

Open mor10 opened 1 year ago

mor10 commented 1 year ago

Issue Overview

WP-CLI serves as a robust test of PHP capabilities in Codespaces. The ideal outcome of this project is to build a Codespaces template where WP-CLI is provided on boot and is available immediately. In limited testing I have been unable to get WP-CLI to work in a Codespace. When I try to install and run it I get cascading error messages, many of which are outside what is to be expected from a regularly functioning environment.

Possible Solution

Looping in @schlessera and the WP-CLI team for collab.

schlessera commented 1 year ago

Hey @mor10 , Not sure where you're blocked, you didn't provide the error messages you're seeing. I played around with codespaces in the past, and WP-CLI seemed to work just fine. Here's the repo, which might help: https://github.com/wp-cli/getting-started-workshop However, I don't know if I pushed all changes, as I scrapped the entire approach because of the way Codespaces' access is managed, which made it unusable for my use case.

araeubig commented 1 year ago

Hey @mor10 , Not sure where you're blocked, you didn't provide the error messages you're seeing. I played around with codespaces in the past, and WP-CLI seemed to work just fine. Here's the repo, which might help: https://github.com/wp-cli/getting-started-workshop However, I don't know if I pushed all changes, as I scrapped the entire approach because of the way Codespaces' access is managed, which made it unusable for my use case.

The Codespace is not really working. I searched a lot but if found no one really perfect working solution.