From 4f15e271f541ecd525268efa40992e0f5c057e12 Mon Sep 17 00:00:00 2001 From: Alexander Kavon Date: Mon, 22 Jan 2024 13:44:44 -0500 Subject: rebuild commands, update postgres port to standard 5432 --- Makefile | 5 ++++- container-compose.yml | 2 +- migrations/tern.conf | 2 +- sqlboiler.toml | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index d7972a6..7d4866e 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: migrate unmigrate rollback +.PHONY: migrate unmigrate rollback dev halt rs migrate: TERN_CONFIG=migrations/tern.conf TERN_MIGRATIONS=migrations tern migrate @@ -14,3 +14,6 @@ dev: halt: podman compose down + +rs: + podman compose up --build -d server diff --git a/container-compose.yml b/container-compose.yml index ca53ffa..fe72c6e 100644 --- a/container-compose.yml +++ b/container-compose.yml @@ -20,7 +20,7 @@ services: - POSTGRES_PASSWORD=newsstand - POSTGRES_DB=newsstand ports: - - "9002:5432" + - "5432:5432" volumes: - data:/var/lib/postgresql/data networks: diff --git a/migrations/tern.conf b/migrations/tern.conf index e52b80c..d884e6b 100644 --- a/migrations/tern.conf +++ b/migrations/tern.conf @@ -1,7 +1,7 @@ [database] # host is required (network host or path to Unix domain socket) host = localhost -port = 9002 +port = 5432 # database is required database = newsstand # user defaults to OS user diff --git a/sqlboiler.toml b/sqlboiler.toml index b68e3e8..d0bb4c5 100644 --- a/sqlboiler.toml +++ b/sqlboiler.toml @@ -4,7 +4,7 @@ wipe = true [psql] dbname = "newsstand" host = "localhost" - port = 9002 + port = 5432 user = "newsstand" pass = "newsstand" sslmode = "disable" -- cgit v1.2.3