Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 2 additions & 3 deletions gae/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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,
Expand Down
Loading