TP-27996 | revert makefile (#95)

This commit is contained in:
Tushar Kumar Saha
2023-06-14 12:45:13 +05:30
committed by GitHub Enterprise
parent 4c80e19fbc
commit 956cf339a0
2 changed files with 6 additions and 8 deletions

View File

@@ -1,16 +1,19 @@
.PHONY: build docker-build docker-run migration-down migration-up
POSTGRES_DSN?=postgresql://postgres:admin@localhost:5432/houston
.PHONY: build
build:
go mod tidy && CGO_ENABLED=0 go build -ldflags="-s -w" -o houston cmd/main.go
.PHONY: docker-build
docker-build:
docker build -t houston -f Dockerfile.houston .
.PHONY: docker-run
docker-run: docker-build
docker run houston
.PHONY: migration-up
migration-up:
migrate -path db/migration/ -database "${POSTGRES_DSN}?sslmode=disable" -verbose up
.PHONY: migration-down
migration-down:
migrate -path db/migration/ -database "${POSTGRES_DSN}?sslmode=disable" -verbose down

View File

@@ -3,7 +3,7 @@ PORT=8080
METRIC_POST=9090
#houston token config
HOUSTON_SLACK_APP_TOKEN=xapp-1-A056L9WN8KF-5239925908961-f1feae51a1bb923c4cc84d55edfe2993106ff4cea6c5f1c25bc1d88458dd020c
HOUSTON_SLACK_APP_TOKEN=xapp-1-A04TBQ7PGSJ-4960174100544-3c648a093c830a718bd81aff36cf0f433633312e16a0a6e11408bf5063a4785d
HOUSTON_SLACK_BOT_TOKEN=token
#Postgres config
@@ -21,9 +21,4 @@ CRON_JOB_NAME=cron
#incidents
INCIDENTS_SHOW_LIMIT=10
#gmeet
ENABLE_GMEET=true
GMEET_CONFIG_FILE_PATH=
#S3
S3_BUCKET_NAME=local-houston