feat: estilo editorial de la IA configurable (editorial-style.php) (#27)
Co-authored-by: Hermes Agent <hermes@d0a1.es>
This commit was merged in pull request #27.
This commit is contained in:
1 parent
b3c2098d10
commit
c8ff7c6434
4 files changed
+85
No files matched your search
@@ -303,6 +303,20 @@ if ($WpReady) {
|
||||
} else {
|
||||
Warn 'No se pudo auto-configurar. Re-ejecuta .\deploy.ps1 tras el asistente de WordPress.'
|
||||
}
|
||||
# Estilo editorial: copiar al wp-content (editable: editorial-style.php del pack)
|
||||
# e instalar el mu-plugin que lo inyecta en las instrucciones de la IA.
|
||||
$StyleRc = 1
|
||||
cmd /c "docker exec d0a1-wp mkdir -p /var/www/html/wp-content/mu-plugins >NUL 2>&1"
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
docker cp (Join-Path $ScriptDir 'editorial-style.php') d0a1-wp:/var/www/html/wp-content/editorial-style.php 2>$null
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
docker cp (Join-Path $ScriptDir 'mu-plugin-d0a1-editorial.php') d0a1-wp:/var/www/html/wp-content/mu-plugins/d0a1-editorial.php 2>$null
|
||||
$StyleRc = $LASTEXITCODE
|
||||
}
|
||||
}
|
||||
if ($StyleRc -eq 0) {
|
||||
Ok 'Estilo editorial activo (edita editorial-style.php y re-ejecuta para cambiarlo)'
|
||||
}
|
||||
} else {
|
||||
Warn 'WordPress aun no esta instalado. Tras el asistente del navegador,'
|
||||
Warn 'vuelve a ejecutar .\deploy.ps1 y los plugins de IA se configuran solos.'
|
||||
|
||||
Reference in new issue
Block a user