fidelix / wordpress-vanilla

A simple template for deploy Wordpress on Platform.sh without Composer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WordPress (Vanilla) for Platform.sh

Deploy on Platform.sh

This template builds WordPress on Platform.sh, installing WordPress to a subdirectory instead of to the project root. It does not use a package management tool like Composer, and updating core, themes, and plugins should be done with care. A custom configuration file is provided that runs on Platform.sh to automatically configure the database, so the installer will not ask you for database credentials.

WordPress is a blogging and lightweight CMS written in PHP.

Features

  • PHP 7.4
  • MariaDB 10.4
  • Automatic TLS certificates

Post-install

Run through the WordPress installer as normal. You will not be asked for database credentials as those are already provided.

Customizations

The following changes have been made relative to Bedrock's project creation command composer create-project roots/bedrock. If using this project as a reference for your own existing project, replicate the changes below to your project.

  • The .platform.app.yaml, .platform/services.yaml, and .platform/routes.yaml files have been added. These provide Platform.sh-specific configuration and are present in all projects on Platform.sh. You may customize them as you see fit.
  • A .environment file has been included which sets WordPress's configuration on Platform.sh. It defines the connection to the MariaDB database, the primary site URL, and security keys and salts.
  • A base Landofile provides configuration to use this template locally using Lando.

Local development

This template has been configured for use with Lando. Lando is Platform.sh's recommended local development tool. It is capable of reading your Platform.sh configuration files and standing up an environment that is very similar to your Platform.sh project. Additionally, Lando can easily pull down databases and file mounts from your Platform.sh project.

To get started using Lando with your Platform.sh project check out the Quick Start or the official Lando Platform.sh documentation.

References

About

A simple template for deploy Wordpress on Platform.sh without Composer


Languages

Language:PHP 63.5%Language:JavaScript 19.9%Language:CSS 15.3%Language:SCSS 1.2%Language:HTML 0.1%