I made a WordPress Devcontainer Template
Technology
1
Beiträge
1
Kommentatoren
0
Aufrufe
-
cross-posted from: https://lemmy.ca/post/49042391
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!
Maxim Therrien / WordPress Dev Container Template · GitLab
Template for WordPress development in a dev container
GitLab (gitlab.com)