GithubHelp home page GithubHelp logo

isabella232 / getting-started-workshop Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wp-cli/getting-started-workshop

0.0 0.0 0.0 19 KB

License: GNU General Public License v3.0

Shell 34.89% Dockerfile 65.11%

getting-started-workshop's Introduction

vscode-devcontainer-wordpress

This contains the configuration necessary for setting up WordPress development using VSCode Dev Containers. A MariaDB and WordPress devlopment container are started, and Wordpress is automatically installed and available at http://localhost:8080.

Configuration

By default the container is configured for plugin development, but you can switch to theme development by changing the volume for the WordPress service in docker-compose.yml

WordPress settings can be configured in .devcontainer/wp-setup.sh, i.e. the site name, and admin user account details. You can also specify a space-separated list of WordPress plugins to automatically install as well. By setting WP_RESET to true, the container will rebuild the WordPress instalation from scratch every time it is loaded.

Data folder

Any .sql files placed .devcontainer/data will be automatically imported when your site is built (using wp db import). It is up to you to ensure table name prefixes will match (defualt is wp_).

Anything placed in the plugins folder (single files or folders) will be copied into the WordPress plugins folder and activated as a plugin. This enables things like defining custom post types relevant to your imported data set, but not part of the development process.

Included Tools

  • XDebug, configured
  • WP-CLI
  • Composer
  • NodeJS
  • PHP/WordPress extensions for VSCode (see devconatainer.json)

TODO

  • provide a preconfigured launch.json for PHP debugging
  • theme auto-install

getting-started-workshop's People

Contributors

schlessera avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.