Documentation
¶
Index ¶
Constants ¶
View Source
const DeployYAMLExample = `` /* 470-byte string literal not displayed */
DeployYAMLExample is the default deploy.yaml content for new apps.
Variables ¶
This section is empty.
Functions ¶
func DetectGoVersion ¶
DetectGoVersion reads go version from go.mod.
func EnsureDockerfile ¶
EnsureDockerfile creates a Dockerfile if missing. Returns path.
Types ¶
type Config ¶
type Config struct {
Target string `yaml:"target"` // fly, railway, aws, kubernetes
AppName string `yaml:"app_name"` // app name on platform
Service string `yaml:"service"` // Railway service name (defaults to app_name)
Region string `yaml:"region"` // primary region (fly, aws)
Secrets []string `yaml:"secrets"` // env var names to set as secrets (from .env)
Migrations *bool `yaml:"migrations"` // run migrations on deploy (default true)
Workers []WorkerConfig `yaml:"workers"` // worker processes (e.g. queue:work)
}
Config holds deploy configuration. Loaded from deploy.yaml.
func LoadConfig ¶
Load reads deploy.yaml from dir. Returns nil if file doesn't exist.
type WorkerConfig ¶
Click to show internal directories.
Click to hide internal directories.