Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindProjectRoot ¶
FindProjectRoot searches upward from CWD for a directory containing .musing.yaml and loads the project configuration
func GetAPIRepos ¶
func GetAPIRepos() []string
GetAPIRepos returns paths to expected API repositories Dynamically discovers repos relative to project root based on config
Types ¶
type DatabaseConfig ¶
type DatabaseConfig struct {
Type string `yaml:"type"` // mongodb, postgres, etc
Name string `yaml:"name"` // Database name
DevPort int `yaml:"devPort"`
ProdPort int `yaml:"prodPort"`
DataDir string `yaml:"dataDir"` // Relative path to data directory
}
DatabaseConfig represents database configuration
type ProductionConfig ¶
type ProductionConfig struct {
Server string `yaml:"server"` // SSH server (e.g., "root@your-server.com")
RemoteDBPort int `yaml:"remoteDBPort"` // Remote database port (typically same as devPort)
}
ProductionConfig represents optional production deployment settings
type ProjectConfig ¶
type ProjectConfig struct {
Services []ServiceConfig `yaml:"services"`
Database DatabaseConfig `yaml:"database"`
Production *ProductionConfig `yaml:"production,omitempty"` // Optional production config
}
ProjectConfig represents the .musing.yaml configuration
type ServiceConfig ¶
type ServiceConfig struct {
Name string `yaml:"name"`
Port int `yaml:"port"`
Type string `yaml:"type"` // frontend, api, database
}
ServiceConfig represents a service in the stack
Click to show internal directories.
Click to hide internal directories.