Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
b30cc46739
|
|||
|
3e9a020b20
|
9
.gitmodules
vendored
Normal file
9
.gitmodules
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
[submodule "cmbabaseball/data/plugins/tonys-sportspress-enhancements"]
|
||||
path = cmbabaseball/data/plugins/tonys-sportspress-enhancements
|
||||
url = https://gitea.ascorrea.com/asc/tonys-sportspress-enhancements.git
|
||||
[submodule "cmbabaseball/data/plugins/cimba"]
|
||||
path = cmbabaseball/data/plugins/cimba
|
||||
url = https://gitea.ascorrea.com/asc/cimba.git
|
||||
[submodule "cmbabaseball/data/themes/tonys-rookie-enhancements"]
|
||||
path = cmbabaseball/data/themes/tonys-rookie-enhancements
|
||||
url = https://gitea.ascorrea.com/asc/tonys-rookie-enhancements.git
|
||||
51
.vscode/launch.json
vendored
Normal file
51
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Listen for Xdebug",
|
||||
"type": "php",
|
||||
"request": "launch",
|
||||
"port": 9003,
|
||||
"pathMappings": {
|
||||
"/var/www/html/wp-content/plugins/": "${workspaceFolder}/src/plugins"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Launch currently open script",
|
||||
"type": "php",
|
||||
"request": "launch",
|
||||
"program": "${file}",
|
||||
"cwd": "${fileDirname}",
|
||||
"port": 0,
|
||||
"runtimeArgs": [
|
||||
"-dxdebug.start_with_request=yes"
|
||||
],
|
||||
"env": {
|
||||
"XDEBUG_MODE": "debug,develop",
|
||||
"XDEBUG_CONFIG": "client_port=${port}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Launch Built-in web server",
|
||||
"type": "php",
|
||||
"request": "launch",
|
||||
"runtimeArgs": [
|
||||
"-dxdebug.mode=debug",
|
||||
"-dxdebug.start_with_request=yes",
|
||||
"-S",
|
||||
"localhost:0"
|
||||
],
|
||||
"program": "",
|
||||
"cwd": "${workspaceRoot}",
|
||||
"port": 9003,
|
||||
"serverReadyAction": {
|
||||
"pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
|
||||
"uriFormat": "http://localhost:%s",
|
||||
"action": "openExternally"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
1
cmbabaseball/data/plugins/cimba
Submodule
1
cmbabaseball/data/plugins/cimba
Submodule
Submodule cmbabaseball/data/plugins/cimba added at b1ed7ee6c9
Submodule cmbabaseball/data/plugins/tonys-sportspress-enhancements added at 59bb020f3b
Submodule cmbabaseball/data/themes/tonys-rookie-enhancements added at b2d000cda0
29
cmbabaseball/scaffold.sh
Executable file
29
cmbabaseball/scaffold.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/zsh
|
||||
# Script Name: scaffold.sh
|
||||
# Description: Convenience script to create things using WP-CLI scaffold command
|
||||
#
|
||||
# Usage: ./scaffold.sh COMMAND SLUG OPTIONS
|
||||
# Example:
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
CONTAINER_NAME=cmbabaseball
|
||||
|
||||
# Check if the number of arguments is less than 1 (i.e., PLUGIN_NAME is not provided)
|
||||
if [ "$#" -lt 2 ]; then
|
||||
echo "Error: Not enough arguments."
|
||||
echo "Usage: $0 COMMAND SLUG OPTIONS"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
COMMAND=$1
|
||||
SLUG=$2
|
||||
OPTIONS=$3
|
||||
|
||||
WP_COMMAND="wp scaffold ${COMMAND} ${SLUG} ${OPTIONS}"
|
||||
echo $WP_COMMAND
|
||||
# WP_COMMAND="echo 'hello'"
|
||||
# WP_COMMAND="wp scaffold child-theme"
|
||||
echo $WP_COMMAND
|
||||
NEW_PLUGIN_CONTAINER_LOCATION=$(./docker-run.sh --attach stdout --attach stderr -e WPCLI_COMMAND="$WP_COMMAND" wordpress:cli sh -c 'eval $WPCLI_COMMAND' | sed -rn "s/.*Success: Created '(.*)'.*/\1/gp")
|
||||
echo $NEW_PLUGIN_CONTAINER_LOCATION
|
||||
docker cp ${CONTAINER_NAME}:${NEW_PLUGIN_CONTAINER_LOCATION} ./data/themes/
|
||||
92
compose-development.yml
Normal file
92
compose-development.yml
Normal file
@@ -0,0 +1,92 @@
|
||||
name: ${PROJECT_NAME}
|
||||
services:
|
||||
wordpress-chihounds:
|
||||
container_name: chihounds
|
||||
depends_on:
|
||||
- database
|
||||
image: wordpress:fpm
|
||||
env_file:
|
||||
- .env
|
||||
- chihounds/.env
|
||||
environment:
|
||||
XDEBUG_MODE: debug
|
||||
XDEBUG_CONFIG: client_host=host.docker.internal client_port=9003
|
||||
XDEBUG_SESSION: 1
|
||||
WORDPRESS_DEBUG: 1
|
||||
WORDPRESS_CONFIG_EXTRA: |
|
||||
define( 'WP_DEBUG_DISPLAY', true );
|
||||
define( 'WP_DEBUG_LOG', true );
|
||||
volumes:
|
||||
- chihounds-wpdata:/var/www/html
|
||||
- ./shared/php.ini:/usr/local/etc/php/conf.d/wordpress.ini
|
||||
networks:
|
||||
- network
|
||||
wordpress-cmbabaseball:
|
||||
container_name: cmbabaseball
|
||||
depends_on:
|
||||
- database
|
||||
build:
|
||||
context: ./cmbabaseball
|
||||
dockerfile: ../shared/Dockerfile-development
|
||||
env_file:
|
||||
- .env
|
||||
- cmbabaseball/.env
|
||||
environment:
|
||||
XDEBUG_MODE: debug
|
||||
XDEBUG_CONFIG: client_host=host.docker.internal client_port=9003
|
||||
XDEBUG_SESSION: 1
|
||||
WORDPRESS_DEBUG: 1
|
||||
WORDPRESS_CONFIG_EXTRA: |
|
||||
define( 'WP_DEBUG_DISPLAY', true );
|
||||
define( 'WP_DEBUG_LOG', true );
|
||||
volumes:
|
||||
- cmbabaseball-wpdata:/var/www/html
|
||||
- ./cmbabaseball/data/plugins/cimba:/var/www/html/wp-content/plugins/cimba
|
||||
- ./cmbabaseball/data/plugins/debug-trace:/var/www/html/wp-content/plugins/debug-trace
|
||||
- ./cmbabaseball/data/plugins/tonys-sportspress-enhancements:/var/www/html/wp-content/plugins/tonys-sportspress-enhancements
|
||||
- ./shared/php.ini:/usr/local/etc/php/conf.d/wordpress.ini
|
||||
networks:
|
||||
- network
|
||||
database:
|
||||
container_name: database
|
||||
hostname: ${WORDPRESS_DB_HOST}
|
||||
image: mariadb
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- db-data:/var/lib/mysql
|
||||
networks:
|
||||
- network
|
||||
phpmyadmin:
|
||||
container_name: phpmyadmin
|
||||
image: phpmyadmin
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||
UPLOAD_LIMIT: 128M
|
||||
ports:
|
||||
- "8080:80"
|
||||
networks:
|
||||
- network
|
||||
caddy:
|
||||
image: caddy:alpine
|
||||
container_name: webserver
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
volumes:
|
||||
- caddy-data:/data
|
||||
- caddy-config:/config
|
||||
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
|
||||
- chihounds-wpdata:/var/www/chihounds
|
||||
- cmbabaseball-wpdata:/var/www/cmbabaseball
|
||||
networks:
|
||||
- network
|
||||
|
||||
volumes:
|
||||
db-data:
|
||||
chihounds-wpdata:
|
||||
cmbabaseball-wpdata:
|
||||
caddy-data:
|
||||
caddy-config:
|
||||
networks:
|
||||
network:
|
||||
4
shared/Dockerfile-development
Normal file
4
shared/Dockerfile-development
Normal file
@@ -0,0 +1,4 @@
|
||||
FROM wordpress:fpm
|
||||
|
||||
RUN pecl install xdebug
|
||||
RUN docker-php-ext-enable xdebug
|
||||
Reference in New Issue
Block a user