aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kavon <me+git@alexkavon.com>2024-01-22 13:44:44 -0500
committerAlexander Kavon <me+git@alexkavon.com>2024-01-22 13:44:44 -0500
commit4f15e271f541ecd525268efa40992e0f5c057e12 (patch)
treec3c7cc20a3699d16cefff8cf114e8e7429a47463
parentb3c1584ec4a5bcba84a10cd9b6501d0e978c2457 (diff)
rebuild commands, update postgres port to standard 5432
-rw-r--r--Makefile5
-rw-r--r--container-compose.yml2
-rw-r--r--migrations/tern.conf2
-rw-r--r--sqlboiler.toml2
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"