Renamed to Selig, combine scripts, plugin import

This commit is contained in:
2023-12-17 11:39:46 -06:00
parent 0df4f8540d
commit 9552327281
14 changed files with 60 additions and 82 deletions

View File

@@ -1,6 +1,6 @@
# Kenesaw
# Selig
Kenesaw is a Docker project to set-up two Wordpress servers, one for a league, one for a team. It uses Caddy for the webserver and a single MariaDB instance for the server.
Selig is a Docker project to set-up two Wordpress servers, one for a league, one for a team. It uses Caddy for the webserver and a single MariaDB instance for the server.
Each Wordpress instance setups their own database within the MariaDB instance.
@@ -9,17 +9,19 @@ Each Wordpress instance setups their own database within the MariaDB instance.
There are two environment files, one at the project root and one under each WordPress folder ([cmbabaseball](./cmbabaseball/.env), [chihounds](./chihounds/.env)).
### Init
Each WordPress site has an `wp-install.sh` script ([cmbabaseball](./cmbabaseball/wp-install.sh), [chihounds](./chihounds/wp-install.sh)). It creates the database and install Wordpress using the common `wp-admin` user info provided in the project root via a ephemeral wp-cli container. (Theoretically, this can be changed by overwriting the environment variables in the website-specific env file, but I didn't test that and I don't know what the order would have to be).
Each WordPress site has an `wp-install.sh` script ([cmbabaseball](./cmbabaseball/wp-install), [chihounds](./chihounds/wp-install)). It creates the database and install Wordpress using the common `wp-admin` user info provided in the project root via a ephemeral wp-cli container. (Theoretically, this probably can be changed by overwriting the environment variables in the website-specific env file, but I didn't test that and I don't know what the order would have to be). It also preinstalls a list of plugins as defined in the site's .env.
Currently, the scripts are exactly the same, so they are symbolic links to the shared directory.
```sh
./cmbabaseball/init-wordpress.sh
./chihounds/init-wordpress.sh
./cmbabaseball/init-wordpress
./chihounds/init-wordpress
```
OR
```sh
./*/init-wordpress.sh
./*/init-wordpress
```
### Import