cmd

command
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL