If at any point you run into an issue, please refer back to the repo's main README and follow the WP VIP Local Development Guidebook.
- Clone repo:
git clone https://github.com/Good-Bids/goodbids.git - Configure Remote WPVIP Repo:
git remote add wpvip git@github.com:wpcomvip/goodbids.git - Install VIP CLI: Setup Guide
- Create WP VIP Dev Environment:
vip dev-env create --slug=goodbids --multisite
When prompted, here are the recommended responses:- WordPress site title:
GoodBids Dev - Multisite:
true - PHP version to use:
8.1 - WordPress - Which version would you like:
6.4 or latest - How would you like to source vip-go-mu-plugins:
Demo - Automatically fetched vip-go-mu-plugins - How would you like to source application code:
Custom:/Absolute/Path/To/Local/Repo - Enable Elasticsearch (needed by Enterprise Search)?:
false - Enable phpMyAdmin:
optional - Enable XDebug:
true - Enable Mailpit:
false - Enable Photon:
false
- WordPress site title:
If needed, here is a quick reference on restarting your environment:
vip dev-env --slug=goodbids start
npm run start
vip dev-env --slug=goodbids stop
# Alternatively
bin/start
bin/watch-assets
bin/stopFor ACF Pro, copy auth.json.dist to auth.json in client-mu-plugins/goodbids and use config from ACF's Website. (Credentials are in 1Password)
Then, run composer install in the following directories:
root: Run at project root.client-mu-plugins/goodbids: GoodBids MU Plugin
Finally, run npm install from client-mu-plugins/goodbids
Alternatively, running bin/install will install all composer and npm dependencies.
Duplicate the file client-mu-plugins/vip-env-vars.example.php and rename it to vip-env-vars.local.php. Fill in any
env vars marked with TODO.
http://goodbids.vipdev.lndo.site/
Run the following command to watch the logs:
vip dev-env logs --service=php --follow --slug=goodbidsBecause the repo does not have the core WordPress files, IntelliSense does not know any of the WordPress functions/variables.
In order to get IntelliSense to work you will need to do these steps:
-
Clone the vip-go-mu-plugins
-
Include the path to your local
vip-go-mu-pluginsdirectory in your PHP includes path.- If you are using Visual Studio Code and have the Extensions PHP Intelephense then go to the extensions settings.
- PhpStorm Instructions on adding include paths.
-
Next include the WordPress Core directory that was installed using VIP CLI. It should be at
/Absolute/Path/To/.local/share/vip/dev-environment/goodbids -
You may need to reload your code editor once you have added both include paths.
We are using WordPress-VIP-Go as the code standard. Follow the install instructions on WP VIP to set up phpcs.
Once that is all set up, copy the file phpcs.xml.dist in the goodbids repo and save it as phpcs.xml
Set your phpcs standard to point to /Absolute/Path/To/goodbids/.phpcs.xml",
You can override the default local config by adding a client-mu-plugins/goodbids/config.local.json file. This will allow you to override specific settings without risk of committing to the repository.
Here is a recommended starting point for your local config file:
{
"version": "1.0",
"advanced": {
"debug-mode": true,
"logging": true
},
"active-plugins": [
"log-emails",
"stop-emails"
]
}