Deployment

CI/CD

Manual Deploy

nix develop
wrangler deploy

Database Migration

After deploying schema changes:

wrangler d1 execute concierge-worker --remote --file migrations/0001_create_schema.sql

To reset the database (drops all data):

wrangler d1 execute concierge-worker --remote --command "DROP TABLE IF EXISTS tenants; DROP TABLE IF EXISTS whatsapp_messages; DROP TABLE IF EXISTS lead_form_submissions; DROP TABLE IF EXISTS instagram_messages;"
wrangler d1 execute concierge-worker --remote --file migrations/0001_create_schema.sql

Pre-commit Hooks

The Nix dev shell installs git hooks via cachix/git-hooks.nix: