Configuration and CLI

On this page 2

Environment variables

AreaVariables
ApplicationAPP_NAME, APP_ENV, APP_KEY, APP_URL, DEBUG
DatabaseDB_CONNECTION, DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, DB_PASSWORD
MailMAIL_MAILER, MAIL_HOST, MAIL_PORT, MAIL_USERNAME, MAIL_PASSWORD, MAIL_FROM_ADDRESS
QueueQUEUE_DRIVER, QUEUE_CONCURRENCY, QUEUE_WORKER_CONCURRENCY
ProxyTRUSTED_PROXY_HOPS
BillingSTRIPE_SECRET_KEY, STRIPE_PUBLISHABLE_KEY, STRIPE_WEBHOOK_SECRET
GitHubGITHUB_TOKEN
AIAI_DRIVER, driver-specific API key, model, host, and token values
AutofixAI_AUTOFIX_ENABLED, AI_AUTOFIX_DRAFT, AI_AUTOFIX_MAX_FILES, AI_AUTOFIX_MAX_SOURCE_BYTES, AI_AUTOFIX_BRANCH_PREFIX

Start with .env.example. Never commit plaintext production secrets. BugHQ supports encrypted environment files for deployment.

Common commands

CommandPurpose
bun installInstall locked dependencies
bun run devStart the local site and API
./buddy key:generateGenerate application environment keys
./buddy migrateApply pending database migrations
./buddy generate:migrationsGenerate model-driven migration changes
./buddy build docsBuild the BunPress documentation site
./buddy testRun the test suite
bun run typecheckRun TypeScript checks
bunx --bun pickier .Check repository formatting and lint rules

Run migrations as an explicit deployment step after production secrets are available and before the new application release begins serving requests.

Open source error tracking, released under the MIT License.