wp-init: provision fluent plugins via WP_EXTRA_PLUGINS
gustavoo-portfolio-core refuses to activate without fluentform, fluent-crm and fluent-smtp, but those were gitignored and not installed by the setup: any fresh clone ended with the core plugin inactive and the seeder skipped. They are now part of the default WP_EXTRA_PLUGINS (verified slugs on WordPress.org), with .env.example, compose default, README and .gitignore updated to match.
This commit is contained in:
1 parent
98811a10b7
commit
4d666d1778
5 files changed
+14
-8
No files matched your search
+4
-1
@@ -46,7 +46,10 @@ WP_THEME=gustavoo-portfolio
|
|||||||
# post-views-counter -> contador de views (posts + paginas, posicao manual)
|
# post-views-counter -> contador de views (posts + paginas, posicao manual)
|
||||||
# seo-by-rank-math -> Rank Math SEO (sem configuracao, wizard manual)
|
# seo-by-rank-math -> Rank Math SEO (sem configuracao, wizard manual)
|
||||||
# google-site-kit -> Site Kit por Google (sem configuracao, conexao manual)
|
# google-site-kit -> Site Kit por Google (sem configuracao, conexao manual)
|
||||||
WP_EXTRA_PLUGINS=post-views-counter seo-by-rank-math google-site-kit
|
# fluentform, fluent-crm, fluent-smtp -> exigidos pelo gustavoo-portfolio-core
|
||||||
|
# (formularios de contato, feeds do CRM, SMTP); sem eles o plugin
|
||||||
|
# complementar nao ativa e o seeder nao roda.
|
||||||
|
WP_EXTRA_PLUGINS=post-views-counter seo-by-rank-math google-site-kit fluentform fluent-crm fluent-smtp
|
||||||
|
|
||||||
# ── Redis object cache ───────────────────────────────────────────────────────
|
# ── Redis object cache ───────────────────────────────────────────────────────
|
||||||
WP_REDIS_HOST=redis
|
WP_REDIS_HOST=redis
|
||||||
|
|||||||
+4
-4
@@ -15,9 +15,6 @@ wp-content/themes/twentytwentythree/
|
|||||||
|
|
||||||
# Default WordPress plugins (not part of project)
|
# Default WordPress plugins (not part of project)
|
||||||
wp-content/plugins/akismet/
|
wp-content/plugins/akismet/
|
||||||
wp-content/plugins/fluentform/
|
|
||||||
wp-content/plugins/fluent-crm/
|
|
||||||
wp-content/plugins/fluent-smtp/
|
|
||||||
wp-content/plugins/redis-cache/
|
wp-content/plugins/redis-cache/
|
||||||
wp-content/plugins/query-monitor/
|
wp-content/plugins/query-monitor/
|
||||||
wp-content/plugins/hello.php
|
wp-content/plugins/hello.php
|
||||||
@@ -26,10 +23,13 @@ wp-content/plugins/index.php
|
|||||||
# Third-party plugins installed from WordPress.org by docker/wp-init.sh
|
# Third-party plugins installed from WordPress.org by docker/wp-init.sh
|
||||||
# (WP_EXTRA_PLUGINS). They are downloaded on first run and updated in place, so
|
# (WP_EXTRA_PLUGINS). They are downloaded on first run and updated in place, so
|
||||||
# they are not versioned here: committing them would add ~45 MB of code that the
|
# they are not versioned here: committing them would add ~45 MB of code that the
|
||||||
# setup can fetch on demand.
|
# setup can fetch on demand. fluent* are required by gustavoo-portfolio-core.
|
||||||
wp-content/plugins/post-views-counter/
|
wp-content/plugins/post-views-counter/
|
||||||
wp-content/plugins/seo-by-rank-math/
|
wp-content/plugins/seo-by-rank-math/
|
||||||
wp-content/plugins/google-site-kit/
|
wp-content/plugins/google-site-kit/
|
||||||
|
wp-content/plugins/fluentform/
|
||||||
|
wp-content/plugins/fluent-crm/
|
||||||
|
wp-content/plugins/fluent-smtp/
|
||||||
|
|
||||||
# Redis object cache drop-in (auto-installed by wpcli service)
|
# Redis object cache drop-in (auto-installed by wpcli service)
|
||||||
wp-content/object-cache.php
|
wp-content/object-cache.php
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ O serviço `wpcli` roda o `docker/wp-init.sh` e detecta o estado do banco:
|
|||||||
**Primeira execução (banco vazio) — instalação**
|
**Primeira execução (banco vazio) — instalação**
|
||||||
1. `wp core install` com URL/título/admin definidos no `.env`
|
1. `wp core install` com URL/título/admin definidos no `.env`
|
||||||
2. Pacote de idioma `pt_BR`
|
2. Pacote de idioma `pt_BR`
|
||||||
3. Instala do WordPress.org os plugins de `WP_EXTRA_PLUGINS` (Post Views Counter, Rank Math SEO, Site Kit) — só se faltarem
|
3. Instala do WordPress.org os plugins de `WP_EXTRA_PLUGINS` (Post Views Counter, Rank Math SEO, Site Kit, Fluent Forms, FluentCRM, FluentSMTP) — só se faltarem
|
||||||
4. Ativa **todos** os plugins de `wp-content/plugins/` e remove os que o WordPress traz (`akismet`, `hello`)
|
4. Ativa **todos** os plugins de `wp-content/plugins/` e remove os que o WordPress traz (`akismet`, `hello`)
|
||||||
5. Redis: constantes no `wp-config.php`, plugin, drop-in `object-cache.php` e verificação de conexão
|
5. Redis: constantes no `wp-config.php`, plugin, drop-in `object-cache.php` e verificação de conexão
|
||||||
6. Configura o Post Views Counter: conta **posts e páginas**, posição **Manual only**
|
6. Configura o Post Views Counter: conta **posts e páginas**, posição **Manual only**
|
||||||
|
|||||||
+1
-1
@@ -70,7 +70,7 @@ services:
|
|||||||
WP_REDIS_PORT: ${WP_REDIS_PORT:-6379}
|
WP_REDIS_PORT: ${WP_REDIS_PORT:-6379}
|
||||||
WP_REDIS_PASSWORD: ${WP_REDIS_PASSWORD:-}
|
WP_REDIS_PASSWORD: ${WP_REDIS_PASSWORD:-}
|
||||||
WP_REDIS_DATABASE: ${WP_REDIS_DATABASE:-}
|
WP_REDIS_DATABASE: ${WP_REDIS_DATABASE:-}
|
||||||
WP_EXTRA_PLUGINS: ${WP_EXTRA_PLUGINS:-post-views-counter seo-by-rank-math google-site-kit}
|
WP_EXTRA_PLUGINS: ${WP_EXTRA_PLUGINS:-post-views-counter seo-by-rank-math google-site-kit fluentform fluent-crm fluent-smtp}
|
||||||
WP_LOCALE: ${WP_LOCALE:-pt_BR}
|
WP_LOCALE: ${WP_LOCALE:-pt_BR}
|
||||||
WP_SKIP_UPDATES: ${WP_SKIP_UPDATES:-}
|
WP_SKIP_UPDATES: ${WP_SKIP_UPDATES:-}
|
||||||
WP_THEME: ${WP_THEME:-gustavoo-portfolio}
|
WP_THEME: ${WP_THEME:-gustavoo-portfolio}
|
||||||
|
|||||||
+4
-1
@@ -23,7 +23,10 @@ WP_LOCALE="${WP_LOCALE:-pt_BR}"
|
|||||||
# Plugins from the WordPress.org directory that must exist even when they are
|
# Plugins from the WordPress.org directory that must exist even when they are
|
||||||
# not committed to wp-content/plugins. Installed only when missing, then
|
# not committed to wp-content/plugins. Installed only when missing, then
|
||||||
# activated. Format: slug (or URL).
|
# activated. Format: slug (or URL).
|
||||||
WP_EXTRA_PLUGINS="${WP_EXTRA_PLUGINS:-post-views-counter seo-by-rank-math google-site-kit}"
|
# fluentform, fluent-crm and fluent-smtp are required by gustavoo-portfolio-core
|
||||||
|
# (contact forms, CRM feeds, SMTP); without them the core plugin refuses to
|
||||||
|
# activate and the seeder never runs.
|
||||||
|
WP_EXTRA_PLUGINS="${WP_EXTRA_PLUGINS:-post-views-counter seo-by-rank-math google-site-kit fluentform fluent-crm fluent-smtp}"
|
||||||
|
|
||||||
wp_run() {
|
wp_run() {
|
||||||
wp --path="$WP_PATH" "$@"
|
wp --path="$WP_PATH" "$@"
|
||||||
|
|||||||
Reference in new issue
Block a user