You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Playground CLI: Add skipSqliteSetup flag for MySQL support (#97)
## Motivation for the change, related issues
While investigating
https://linear.app/a8c/issue/STU-60/studio-app-cannot-activate-wordpress-plugins-using-freemius-if-using
we realized there isn't an existing way to test mounted sites that use
MySQL.
## Implementation details
The proposed change introduces a new CLI flag `--skipSqliteSetup` that
allows mounting a site using MySQL.
## Testing Instructions (or ideally a Blueprint)
1. Create a local site that is using MySQL. You can create a fresh
Studio site and then follow these steps:
https://developer.wordpress.com/docs/developer-tools/studio/frequently-asked-questions/#use-studio-with-mysql-server.
2. Once the site is ready, run bun command with the `--skipSqliteSetup`
flag included. You can use the following example as a base:
```
bun ~/a8c/wordpress-playground-private/packages/playground/cli/src/cli.ts server --mountBeforeInstall=/Users/ivanottinger/Studio/0-db-new-test:/wordpress --port=9401 --skipWordPressSetup --skipSqliteSetup --php=8.4
```
3. Open the provided local site URL. It should load your Studio site
that runs on MySQL as opposed to SQLite.
4. If the command is run without the flag, the site should load with the
default SQLite DB.
---------
Co-authored-by: Bero <[email protected]>
0 commit comments