micro--go-micro
c09695d4e2
Run Tests / Unit Tests (push) Has been cancelled
Run Tests / Etcd Integration Tests (push) Has been cancelled
micro build: - Generates Dockerfiles for services (if not present) - Builds container images for all services in micro.mu - Supports --tag, --registry, --push flags - --compose flag generates docker-compose.yml micro deploy: - Default: deploys with docker-compose - --ssh user@host: deploys via SSH (rsync + build on remote) - --build: rebuild images before deploying Complete workflow: micro run # Develop locally micro build # Build images micro deploy # Deploy Or for simple SSH deploys: micro deploy --ssh user@host Co-authored-by: Shelley <shelley@exe.dev>
29 行
462 B
Go
29 行
462 B
Go
package main
|
|
|
|
import (
|
|
"embed"
|
|
"go-micro.dev/v5/cmd"
|
|
|
|
_ "go-micro.dev/v5/cmd/micro/cli"
|
|
_ "go-micro.dev/v5/cmd/micro/cli/build"
|
|
_ "go-micro.dev/v5/cmd/micro/cli/deploy"
|
|
_ "go-micro.dev/v5/cmd/micro/run"
|
|
"go-micro.dev/v5/cmd/micro/server"
|
|
)
|
|
|
|
//go:embed web/styles.css web/main.js web/templates/*
|
|
var webFS embed.FS
|
|
|
|
var version = "5.0.0-dev"
|
|
|
|
func init() {
|
|
server.HTML = webFS
|
|
}
|
|
|
|
func main() {
|
|
cmd.Init(
|
|
cmd.Name("micro"),
|
|
cmd.Version(version),
|
|
)
|
|
}
|