fix: update docker compose to auto migrate
This commit is contained in:
parent
314bf224ea
commit
08bb5d0eca
@ -8,6 +8,9 @@ services:
|
|||||||
- postgres
|
- postgres
|
||||||
networks:
|
networks:
|
||||||
- taskcafe-test
|
- taskcafe-test
|
||||||
|
environment:
|
||||||
|
TASKCAFE_DATABASE_HOST: postgres
|
||||||
|
TASKCAFE_MIGRATE: "true"
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:12.3-alpine
|
image: postgres:12.3-alpine
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -73,7 +73,7 @@ func (Backend) GenFrontend() error {
|
|||||||
// Build the Go api service
|
// Build the Go api service
|
||||||
func (Backend) Build() error {
|
func (Backend) Build() error {
|
||||||
fmt.Println("compiling binary dist/taskcafe")
|
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
|
// Schema merges GraphQL schema files into single schema & runs gqlgen
|
||||||
|
Loading…
Reference in New Issue
Block a user