diff --git a/.env.example b/.env.example index cd224cf..d79d099 100644 --- a/.env.example +++ b/.env.example @@ -46,7 +46,10 @@ WP_THEME=gustavoo-portfolio # post-views-counter -> contador de views (posts + paginas, posicao manual) # seo-by-rank-math -> Rank Math SEO (sem configuracao, wizard 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 ─────────────────────────────────────────────────────── WP_REDIS_HOST=redis diff --git a/.gitignore b/.gitignore index b048435..4943f71 100644 --- a/.gitignore +++ b/.gitignore @@ -15,9 +15,6 @@ wp-content/themes/twentytwentythree/ # Default WordPress plugins (not part of project) 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/query-monitor/ 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 # (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 -# 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/seo-by-rank-math/ 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) wp-content/object-cache.php diff --git a/README.md b/README.md index a9b54cc..b61a414 100644 --- a/README.md +++ b/README.md @@ -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** 1. `wp core install` com URL/título/admin definidos no `.env` 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`) 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** diff --git a/compose.yaml b/compose.yaml index 4d0ce18..305abd9 100644 --- a/compose.yaml +++ b/compose.yaml @@ -70,7 +70,7 @@ services: WP_REDIS_PORT: ${WP_REDIS_PORT:-6379} WP_REDIS_PASSWORD: ${WP_REDIS_PASSWORD:-} 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_SKIP_UPDATES: ${WP_SKIP_UPDATES:-} WP_THEME: ${WP_THEME:-gustavoo-portfolio} diff --git a/docker/wp-init.sh b/docker/wp-init.sh index 30c03b6..40ba0be 100755 --- a/docker/wp-init.sh +++ b/docker/wp-init.sh @@ -23,7 +23,10 @@ WP_LOCALE="${WP_LOCALE:-pt_BR}" # Plugins from the WordPress.org directory that must exist even when they are # not committed to wp-content/plugins. Installed only when missing, then # 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 --path="$WP_PATH" "$@"