Skip to content

Commit

Permalink
fix: update docker compose to auto migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanKnott committed Aug 22, 2020
1 parent 314bf22 commit 08bb5d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ services:
- postgres
networks:
- taskcafe-test
environment:
TASKCAFE_DATABASE_HOST: postgres
TASKCAFE_MIGRATE: "true"
postgres:
image: postgres:12.3-alpine
restart: always
Expand Down
2 changes: 1 addition & 1 deletion magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (Backend) GenFrontend() error {
// Build the Go api service
func (Backend) Build() error {
fmt.Println("compiling binary dist/taskcafe")
return sh.Run("go", "build", "-o", "dist/taskcafe", "cmd/taskcafe/main.go")
return sh.Run("go", "build", "-tags", "prod", "-o", "dist/taskcafe", "cmd/taskcafe/main.go")
}

// Schema merges GraphQL schema files into single schema & runs gqlgen
Expand Down

0 comments on commit 08bb5d0

Please sign in to comment.