Documentation
¶
Overview ¶
Package main demonstrates running apps in single-app and multi-app modes.
Single-app mode (dedicated deployment):
MODE=single DATABASE_URL=postgres://... go run main.go
Multi-app mode (shared deployment):
MODE=multi DATABASE_URL=postgres://... go run main.go
Then test with:
# Single-app mode: curl http://localhost:8080/api/info # Multi-app mode: curl -H "X-App-ID: example" http://localhost:8080/api/info
Click to show internal directories.
Click to hide internal directories.