Wordpress | Plyable

Wordpress

The plypress folder is a Wordpress block theme.

Local

To develop locally you set up wordpress then install the theme.

These commands will create a persistent container.

Create a local network

podman network create shared

Create mariadb container. Login: root/pw.

podman run -it --env MARIADB_ROOT_PASSWORD=pw -p 127.0.0.1:3306:3306 --net shared --name mariadb mariadb:latest --gdb

Create a wordpress container. Mount the plypress folder into the wordpress themes folder. This means you can edit the theme locally and see the change reflected in the container.

podman run -it --net shared -p 8000:80 -v ./plypress:/var/www/html/wp-content/themes/plypress:Z --name wordpress wordpress

These containers can be started and stopped with

podman start mariadb
podman start wordpress

Wordpress is now running at http://localhost:8000/.

Create the database:

mysql -h 127.0.0.1 -P 3306 --protocol=TCP -u root -p
(password is pw)

CREATE DATABASE wordpress;

Set up wordpress, with the details we just created:

Database Name: wordpress
Username: root
Password: pw
Database host: mariadb
Table Prefix: wp_

Now navigate to Appearance -> Themes and use the Plyable theme.

To install on the live site,

cd Plyable-Static-2.0/
zip -r plypress.zip plypress/

then upload the zip file to the live wordpress site theme.