Skip to content

Add phpMyAdmin to wp-env environment#3420

Merged
acicovic merged 2 commits intodevelopfrom
add/phpmyadmin-to-wpenv-environment
Jun 9, 2025
Merged

Add phpMyAdmin to wp-env environment#3420
acicovic merged 2 commits intodevelopfrom
add/phpmyadmin-to-wpenv-environment

Conversation

@acicovic
Copy link
Collaborator

@acicovic acicovic commented Jun 4, 2025

Description

With this PR, we're adding a running phpMyAdmin instance to our wp-env environment.

Motivation and context

How has this been tested?

  • Run npm run wp-env start.
  • In the command output, phpMyAdmin started at http://localhost:9000 should appear.
  • Visiting http://localhost:9000 with a browser should give access to a running phpMyAdmin instance.

Summary by CodeRabbit

  • Chores
    • Updated environment configuration to set a specific port (9000) for phpMyAdmin in the development environment.

@acicovic acicovic added this to the 3.20.0 milestone Jun 4, 2025
@acicovic acicovic self-assigned this Jun 4, 2025
@acicovic acicovic requested a review from a team as a code owner June 4, 2025 15:15
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 4, 2025

📝 Walkthrough

Walkthrough

The .wp-env.json configuration file was updated to add a "development" environment section under the "env" key, specifying a custom "phpmyadminPort" value of 9000. No changes were made to the existing plugins array or to any exported or public code entities.

Changes

File Change Summary
.wp-env.json Added "development" environment with "phpmyadminPort": 9000

Sequence Diagram(s)

No sequence diagram generated as the change is limited to configuration settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
.wp-env.json (1)

5-9: Document phpMyAdmin setup in the project docs.
Now that phpMyAdmin is exposed on port 9000, the README or CONTRIBUTING guide should include instructions on how to access and use it.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 14dd609 and 9fde422.

📒 Files selected for processing (1)
  • .wp-env.json (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: E2E against WordPress latest
  • GitHub Check: build
🔇 Additional comments (3)
.wp-env.json (3)

4-4: Ensure valid JSON syntax with trailing comma.
Adding the comma after the plugins array enables the new env key without syntax errors.


5-9: Approve phpMyAdmin environment configuration.
This block correctly defines a development env with phpmyadminPort: 9000, matching the intended setup for local database access.


5-9:

Details

❓ Verification inconclusive

Verify support in the installed wp-env version.
Confirm that your @wordpress/env version recognizes phpmyadminPort by running:

and checking the changelog for phpMyAdmin support.


🏁 Script executed:

npm list @wordpress/env

Length of output: 75


To confirm whether @wordpress/env is installed locally or globally and what version (if any) is in use, let’s check both global installs and your project’s package.json:


🏁 Script executed:

#!/usr/bin/env bash
# Check local install/version
npm ls @wordpress/env --depth=0 || echo "✓ @wordpress/env not found locally"
# Check global install/version
npm ls -g @wordpress/env --depth=0 || echo "✓ @wordpress/env not found globally"
# See if it’s declared in your package.json
grep -R "\"@wordpress/env\"" -n package.json || echo "✓ @wordpress/env not declared in package.json"

Length of output: 388


Confirm phpMyAdmin port support in @wordpress/env
It looks like no local or global install was detected (but your package.json pins @wordpress/env to ^10.24.0). Please ensure you’ve installed dependencies and verify the actual version in use:

npm install
npm list @wordpress/env --depth=0

Then check the changelog to confirm that your installed version (or a later one) added support for the phpmyadminPort option:
https://github.com/WordPress/gutenberg/blob/trunk/packages/env/CHANGELOG.md#changelog

Copy link
Contributor

@alecgeatches alecgeatches left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool wp-env feature! Confirmed this worked locally.

@acicovic acicovic merged commit 80fb317 into develop Jun 9, 2025
41 checks passed
@acicovic acicovic deleted the add/phpmyadmin-to-wpenv-environment branch June 9, 2025 08:22
github-actions bot added a commit that referenced this pull request Jun 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants