Deploy Configuration
Once all dependencies have been installed, configure your deployment by declaring a Deploy block in your gothic.config.go file, as shown below. This is a real Go file — the CLI parses it statically, so your editor type-checks it as you write. Note there is no goModuleName field anymore: Gothic reads your module path straight from go.mod. AWS settings live under Deploy.Providers.AWS:
package main
import gothic "github.com/gothicframework/core/config"
var Config = gothic.Config{
ProjectName: "gothic-example",
OptimizeImages: gothic.OptimizeImagesConfig{
LowResolutionRate: 20,
},
Deploy: &gothic.DeployConfig{
Provider: gothic.AWS,
Providers: gothic.Providers{
AWS: gothic.AWSProvider{
ServerMemory: 512,
ServerTimeout: 30,
Region: "us-east-1",
Profile: "default",
Stages: map[string]gothic.Stage{
"dev": {
ENV: map[string]gothic.EnvValue{},
},
},
},
},
},
}Now that you added the deploy configuration, let's go deeper into each functionality.
