Skip to content

Deployment

The recommended way to deploy HonoCommerce is with Docker:

Terminal window
bun run docker:build

The included Dockerfile creates an optimized production image using Bun.

Set all required environment variables for production:

Terminal window
DATABASE_URL=postgresql://user:pass@host:5432/honocommerce
REDIS_URL=redis://host:6379
NODE_ENV=production
PORT=3000

Verify the deployment is healthy:

Terminal window
curl http://your-server:3000/wp-json/wc/v3/system_status