radicalplatforms / shafa

A wardrobe logging, composition, and organization app
https://shafa.app
Mozilla Public License 2.0
1 stars 0 forks source link

Hono deploy production workflow is not injecting secrets properly #58

Closed rak3rman closed 6 months ago

rak3rman commented 6 months ago

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, 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.

Acceptance Criteria

Generated by Zenhub AI