diff --git a/README.md b/README.md index 0f28e4c..6bb1c98 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,36 @@ $ curl -X POST --data '{"Season":"Spring","Year":1901,"Type":"Movement","Units": See https://github.com/zond/godip/tree/master/gae for exact implementation details. +### Deploying to production + +The production service runs on Google App Engine. To deploy changes manually: + +#### Prerequisites + +- Google Cloud SDK (`gcloud` CLI) installed +- Authentication with appropriate permissions to the `godip-adjudication` project + +#### Deployment steps + +```bash +# Navigate to the GAE directory +cd gae + +# Authenticate with Google Cloud (if not already logged in) +gcloud auth login + +# Set the correct project +gcloud config set project godip-adjudication + +# Deploy to production +gcloud app deploy app.yaml + +# Verify deployment +gcloud app logs read --limit 50 +``` + +Note: There is no automated deployment from CI/CD. GitHub Actions only runs tests on push/PR. + ### Variant support Currently only a few variants are supported. diff --git a/gae/common.go b/gae/common.go index 8975e52..d14ce5e 100644 --- a/gae/common.go +++ b/gae/common.go @@ -3,7 +3,6 @@ package main import ( "github.com/zond/godip" "github.com/zond/godip/state" - "github.com/zond/godip/variants/classical" "github.com/zond/godip/variants/common" ) @@ -42,11 +41,11 @@ func NewPhase(state *state.State) *Phase { } func (self *Phase) State(variant common.Variant) (*state.State, error) { - parsedOrders, err := classical.Parser.ParseAll(self.Orders) + parsedOrders, err := variant.Parser.ParseAll(self.Orders) if err != nil { return nil, err } - return classical.Blank(variant.Phase( + return variant.Blank(variant.Phase( self.Year, self.Season, self.Type,