Files
commerce/config/production/default.go
zeekay 1943f1c093 Hanzo Commerce
Multi-tenant commerce and billing: orders, subscriptions, invoices, plans,
usage metering and a credit ledger. One Go binary. MIT OR Apache-2.0.

Claude-Session: https://claude.ai/code/session_01SAtaDFm8VDiWrhYHNNtxMw
2026-09-23 21:52:16 -07:00

25 lines
436 B
Go

package main
import (
"log"
"os"
"github.com/zap-proto/zip"
"github.com/hanzoai/commerce/util/default_"
)
func main() {
app := zip.New(zip.Config{AppName: "commerce-default", DisableStartupMessage: true})
default_.Init(app)
// Get port from environment or default to 8080
port := os.Getenv("PORT")
if port == "" {
port = "8080"
}
log.Printf("Starting server on :%s", port)
log.Fatal(app.Listen("http://:" + port))
}