Zaj module deploy
Execute from: Customizations playbook when adding integration code; this runbook is the deploy card only.
First deploy of a new ZajModule or an update to an existing package under packages/ZajModules/.
Pre-deploy (local)
Section titled “Pre-deploy (local)”grep -r "{Provider}ServiceProvider" bootstrap/providers.phpgrep "ZajModules" composer.json # MUST include Core + category namespacecomposer dump-autoloadphp artisan tinker --execute="app(\\ZajModules\\{Cat}\\{Mod}\\Services\\{Mod}Service::class);"open http://<PROJECT>.test/loginNew module — deploy sequence
Section titled “New module — deploy sequence”git add packages/ZajModules/git commit -m "🔨 🟪 T3 Add-Feature: Add {Module}"git push origin developdep deploy production
ssh <SSH_ALIAS> "cd <DEPLOY_PATH> && composer dump-autoload \ && php artisan vendor:publish --tag=zajmodules-{module}-config \ && php artisan config:cache"Verify
Section titled “Verify”ssh <SSH_ALIAS> "cd <DEPLOY_PATH> && php artisan provider:list | grep ZajModules"ssh <SSH_ALIAS> "cd <DEPLOY_PATH> && php artisan tinker --execute=\"dump(config('zajmodules.{module}'));\""Fast disable (no code revert)
Section titled “Fast disable (no code revert)”# In shared .env on serverZAJMODULES_{MODULE}_ENABLED=falsephp artisan config:cacheAbort if
Section titled “Abort if”ServiceProvider not registered · .env vars missing on target server · packages/workdo/ was touched · module not tested locally with tinker.