Skip to content

mbishram/wordpress-demo

Repository files navigation

Wordpress Demo

A Wordpress demo created using DDEV and Bedrock.

Requirements

  • DDEV >= 1.24.1

Getting Started

Copy .env.example to .env and update the following values.

DB_NAME='db'
DB_USER='db'
DB_PASSWORD='db'
DB_HOST='db'
...
WP_ENV='development'
WP_HOME="${DDEV_PRIMARY_URL}"
WP_SITEURL="${WP_HOME}/wp"
...

For more details, see DDEV Environment Variable page

After that, you can run the following command to start DDEV server.

ddev start

It should show the URL where the site is served.

Demo Theme

There are two types of themes in this project, hybrid theme and block theme.

Hybrid themes are located at /web/app/themes/hybrid-demo. They are created using Sage.

For block themes, they are located at /web/app/themes/block-demo and are created using Create Block Theme plugin's blank theme template.

For more details on how to run them, see README.md file on each of the theme's root directory.

Sample Data

Sample data used for testing purposes are located at /data which you can use with Wordpress' import tool to import them.

About

A Wordpress demo for using DDEV + Bedrock

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published