rscoopcur / WordpressDevContainer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wordpress Development Container

This is a skelton of a project that allows you to easily set up VS Code to begin doing Wordpress plugin development immediately.

Prerequisites

Start

  1. Clone this repo into onto your computer

  2. Open the folder in VS Code

  3. Hit Ctrl+Shift+P or F1 to show the command palette

  4. Type Remote-Containers: Reopen in Container

  5. Write your plugin in the my-new-plugin folder

  6. To deploy the plugin, hit Ctrl+Shift+P to show the command palette and type Tasks: RunTask

  7. Click enter (Deploy Plugin should be selected)

  8. Open http://localhost:8080/wp-admin/plugins.php

  9. You should see the plugin deployed. You will ned to hit activate for it to have any effect.

Notes

  • The first time you open your wordpress instance you will need to go through the installation process. You only need to do this once unless you clear your my sql db volume.
  • I would suggest renaming the folder from my-new-plugin to something more appropriate to your plugin. Once you do that, you will need to update tasks.json with the new folder name

Known issues

  • Sometimes the compose gets in a bad state after making changes to the file. You may need to delete the containers manually and prune your volumes to get it to start correctly again.

About

License:MIT License


Languages

Language:PHP 100.0%