When the .github/workflows/hono_deploy_production.yml workflow is triggered on commit to main, the production instance throws a 500 error when accessing any route that interfaces with the database, like GET /api/items.
After inspecting the the production logs, the 500 is thrown because the DATABASE_URL secret is not being injected properly into the production cloudflare worker environment.
The current script appears to follow the spec, but lets modify the script to use something that we know works: .github/workflows/hono_integration.yml, Deploy Hono step. Copy the pnpm action setup and add as a job to the deploy production script and add a postCommand to the Deploy Hono step in prod.
Description
When the
.github/workflows/hono_deploy_production.yml
workflow is triggered on commit to main, the production instance throws a 500 error when accessing any route that interfaces with the database, likeGET /api/items
.After inspecting the the production logs, the 500 is thrown because the DATABASE_URL secret is not being injected properly into the production cloudflare worker environment.
The current script appears to follow the spec, but lets modify the script to use something that we know works:
.github/workflows/hono_integration.yml
, Deploy Hono step. Copy the pnpm action setup and add as a job to the deploy production script and add apostCommand
to the Deploy Hono step in prod.Acceptance Criteria
.github/workflows/hono_deploy_production.yml
workflow is triggered on commit to mainGET /api/items