Hello all,
I’m getting back into doing some freelance WordPress stuff – and with a decent SysAdmin/DevOps background I only found it natural to start off with a proper stack. Trellis was the obvious answer. It was a breeze to get going - kudos to the team.
Context/background:
- Development (Base install + Bricks and a few plugins)
- Staging (Remote Linode Deployment)
I have the end-to-end provision and deploy process working.
I have noticed my generated .gitignore file includes:
# Application
web/app/plugins/*
!web/app/plugins/.gitkeep
web/app/mu-plugins/*/
web/app/themes/twentytwentyfour/
web/app/upgrade
web/app/uploads/*
!web/app/uploads/.gitkeep
web/app/cache/*
# WordPress
web/wp
web/.htaccess
# Logs
*.log
# Dotenv
.env
.env.*
!.env.example
# Composer
/vendor
# WP-CLI
wp-cli.local.yml
My rather generic/ignorant question (apologies if already answered somewhere);
I have noticed that during deployment that the plugins folder is ignored.
Is it best practice to kick-off additional after-deploy hooks that handle composer based plugin installation? What about plugin activation – is it typical to automate that via some WP-CLI scripts after-deployment as-well?
Trying my best to stick to the intended principles and not stray off that path early on.