Spyke

I made a WordPress Devcontainer Template

I was sick of always fighting with WordPress to get a local set up to develop a plug-in or update the theme for a client, so I made a dev container.

As per the README, this supports:

  • Automatic database dump import and site URL rename
  • Automatic WordPress theme and plug-in loading from .zip, wpackagist or directory
  • Mounting of a user-provided uploads directory

It also means your IDE automatically gets access to a WordPress installation for easy auto complete of WordPress functions and features when writing PHP code.

Theoretically, it can also easily be converted into a normal container if you don't use VSCode by setting up /workspace as a mount. Dev containers are unfortunately a bit broken with JetBrains products, and this container will not launch.

Contributions welcome!

I made a WordPress Devcontainer Templatehttps://gitlab.com/acerspyro/wordpress-devcontainer-templateOpen linkView original on lemmy.ca
No comments on the original post yet.
I made a WordPress Devcontainer Template | Spyke