Skip to content
prod e051e98
Browse

CodeCanyon workflows

The command router for a CodeCanyon Laravel app across its whole lifecycle — start with first-time setup (vendor ZIP → first deploy), then route any operation once the app is live (all five branches exist, Deployer wired, answering on staging and production).

Pick your situation in the tree below, then open the linked playbook or runbook for step-by-step detail. The operations branch condenses the consolidated ops reference from the Residoro corpus (Ops-Workflows.md).

ModeWhat to do
Agent-drivenInstall zaj-laravel-codecanyon in Phase 1, then run /zaj-laravel-codecanyon with an action (ship, update, hotfix, …). The skill routes to the same workflows below.
ManualUse the decision tree, open the matching playbook page, and run the steps there.
Describe the problemTell your agent what is wrong (“production is down”, “vendor released v11”, “logo uploaded on server”) — it should map you to one row in the catalog.

Replace placeholders from your project constitution (CLAUDE.md / CLAUDE.local.md), not hardcoded domain names:

PlaceholderExampleSource
[PROJECT]waraqProject constitution
[DOMAIN]waraq.aiLocal secrets file
[SSH_STAGING_ALIAS]Hostinger-ZajalySSH config
[SSH_PRODUCTION_ALIAS]Hostinger-WaraqSSH config
[DEPLOY_PATH]~/domains/[DOMAIN]/public_htmlHosting layout
[PHP_BIN]php or /opt/alt/php83/usr/bin/phpServer-specific
[AUTHOR_VERSION]v10.4Frozen vendor branch
[YOUR_VERSION]v1.0.0-bgit tag --list "v*" --sort=-v:refname | head -1

Post-setup operations router

Post-setup operations router Decision tree with 18 steps and 9 outcomes: Set up a New App, WF-HOTFIX, WF-ROLLBACK, WF-UPDATE, WF-SYNC, WF-SECURITY, WF-MODULE, WF-DOCS, WF-SHIP. What do I need to do? Laravel/CodeCanyon · setup → ops Setting up a new app? First time · vendor ZIP → live Set up a New App First-time setup · 12 phases Open guide → Production broken? Down · data loss · payments Fixable in an hour? Known cause · small forward fix WF-HOTFIX Fix forward · skip staging Open guide → WF-ROLLBACK Restore last good release Open guide → New vendor release? CodeCanyon author shipped WF-UPDATE Vendor release Open guide → Server drift? Files on server not in git WF-SYNC Server → git capture Open guide → Security CVE found? composer / npm audit WF-SECURITY composer / npm audit Open guide → ZajModule or package? packages/ZajModules/ WF-MODULE ZajModule deploy Open guide → Only documentation? Guides · runbooks · module docs WF-DOCS Write project docs Open guide → WF-SHIP Continuous Deploy · Ship Open guide → Most weeks: WF-SHIP + occasional WF-SYNC. Hotfix, rollback, and vendor update are exception paths.
Start at the top: answer each gate until you reach a workflow. Open it from the catalog below.

Use the wizard when you want a guided recommendation instead of reading the full map.

Your path on the map

Your path on the map Decision tree with 18 steps and 9 outcomes: Set up a New App, WF-HOTFIX, WF-ROLLBACK, WF-UPDATE, WF-SYNC, WF-SECURITY, WF-MODULE, WF-DOCS, WF-SHIP. What do I need to do? Laravel/CodeCanyon · setup → ops Setting up a new app? First time · vendor ZIP → live Set up a New App First-time setup · 12 phases Open guide → Production broken? Down · data loss · payments Fixable in an hour? Known cause · small forward fix WF-HOTFIX Fix forward · skip staging Open guide → WF-ROLLBACK Restore last good release Open guide → New vendor release? CodeCanyon author shipped WF-UPDATE Vendor release Open guide → Server drift? Files on server not in git WF-SYNC Server → git capture Open guide → Security CVE found? composer / npm audit WF-SECURITY composer / npm audit Open guide → ZajModule or package? packages/ZajModules/ WF-MODULE ZajModule deploy Open guide → Only documentation? Guides · runbooks · module docs WF-DOCS Write project docs Open guide → WF-SHIP Continuous Deploy · Ship Open guide → Most weeks: WF-SHIP + occasional WF-SYNC. Hotfix, rollback, and vendor update are exception paths.
Dimmed branches fade; your choices stay highlighted.

Each workflow maps to published pages — drill in for phases, commands, and troubleshooting.

CodeWhenTypical timeGo to
Set up a New AppFirst-time install — vendor ZIP to a live siteMulti-session · 12 phasesSet up a New App
WF-SHIPFeature, bug fix, or config ready to deploy15 min – 2 hShip → staging → production · Runbook: code → test → ship
WF-SYNCServer has files not in git (uploads, installer output)5 – 15 minServer sync capture · Runbook
WF-UPDATECodeCanyon author shipped a new version1 – 4 hVendor updates playbook
WF-HOTFIXProduction broken; you can fix in under an hour15 min – 1 hHotfix forward
WF-ROLLBACKProduction broken; restore last good release now5 – 15 minRoll back
WF-SECURITYcomposer audit or npm audit found CVEs30 min – 2 hSecurity package update runbook
WF-MODULEDeploy new or updated ZajModule / package10 – 30 minCustomizations playbook · Zaj module deploy runbook
WF-DOCSCreate or refresh project documentation15 – 60 minAuthoring docs runbook
BranchPurposeDeploys to
developActive developmentLocal only
stagingPre-production testingStaging server
productionLive siteProduction server
mainProduction backup mirror
author/v*Frozen vendor snapshotsNever deployed

Deep dive: Branch strategy · Version control guide.

Emoji / typeWhen
🔨 🟪 T3 Add-FeatureNew functionality
🔨 🟪 T3 Edit-FeatureChanged existing feature
🔧 🟦 T2 Fix-BugBug fix
🔧 🟦 T2 Setup-*Config, brand, security, infra
🚀 🟨/🟩 T4 Deploy-AppAfter dep deploy staging / production
📦 ⬜ T1 Setup-AuthorNew vendor import
🔄 ⬛ T5 ServerSync-*Server capture → git

Used by WF-SHIP, WF-UPDATE, WF-SECURITY, and WF-MODULE after local work is verified:

Terminal window
git push origin develop
git checkout staging && git merge develop && git push origin staging
dep deploy staging
# Test staging — critical paths
git checkout production && git merge staging && git push origin production
dep deploy production
# Test production — critical paths
git checkout main && git merge production && git push origin main
git checkout develop

WF-HOTFIX is the exception: branch from production, deploy straight to production (skip staging), then back-merge to develop and staging. See Hotfix vs normal deploy.

Run before every deploy that may include migrations:

Terminal window
php artisan migrate:status
php artisan migrate --pretend
# If Atlas is configured:
atlas schema diff --from "$ATLAS_LOCAL_URL" --to "$ATLAS_STAGING_URL" -w
atlas migrate lint --env local --latest 1 # STOP on DS102 (DROP TABLE), DS103 (DROP COLUMN)
OperationRiskAction
CREATE TABLE / ADD COLUMN (nullable)LowProceed
ADD COLUMN (NOT NULL) / MODIFY COLUMNMediumStaging first
DROP COLUMN / DROP TABLEHighBackup + explicit approval
TRUNCATECriticalBlock — manual approval only

Full gate and Atlas workflow: Ship — database safety · Database and migrations guide.

Stop and reschedule if any of these are true:

  • Friday after 3 PM (wait until Monday unless true emergency)
  • Destructive migrations without a backup
  • Local tests or verification failing
  • You are rushing or do not understand the change
  • You cannot reach help if something goes wrong
Terminal window
# 1. Site loads + no new errors
curl -sI "https://[DOMAIN]" | head -5
ssh [SSH_PRODUCTION_ALIAS] "tail -20 [DEPLOY_PATH]/storage/logs/laravel.log | grep -i error || true"
# 2. Clear + warm caches, restart queue workers (skip if your Deployer hooks already do this)
ssh [SSH_PRODUCTION_ALIAS] "cd [DEPLOY_PATH] && [PHP_BIN] artisan optimize:clear && [PHP_BIN] artisan optimize"
ssh [SSH_PRODUCTION_ALIAS] "cd [DEPLOY_PATH] && [PHP_BIN] artisan queue:restart"

Then spot-check login, dashboard, and the path you changed. If changes are not visible, purge the Cloudflare cache (dashboard → Purge, or enable Dev Mode).