diff --git a/backend/Dockerfile.server b/backend/Dockerfile.server index 20f1970f..928cc22b 100644 --- a/backend/Dockerfile.server +++ b/backend/Dockerfile.server @@ -14,4 +14,4 @@ RUN CGO_ENABLED=0 GOOS=linux go build -v -o ./sac EXPOSE 8080 -CMD ["/sac"] \ No newline at end of file +CMD ["/app/sac"] \ No newline at end of file diff --git a/deployment/init-db.sh b/deployment/init-db.sh index 4a5d4442..486b8605 100644 --- a/deployment/init-db.sh +++ b/deployment/init-db.sh @@ -1,2 +1,2 @@ go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest -~/go/bin/migrate -path ../backend/migrations/ -database postgres://${SAC_DB_USERNAME}:${SAC_DB_PASSWORD}@${SAC_DB_HOST}:${SAC_DB_PORT}/${SAC_DB_NAME}?sslmode=enable -verbose up \ No newline at end of file +~/go/bin/migrate -path ../backend/migrations/ -database postgres://${SAC_DB_USERNAME}:${SAC_DB_PASSWORD}@${SAC_DB_HOST}:${SAC_DB_PORT}/${SAC_DB_NAME}?sslmode=require -verbose up \ No newline at end of file