Skip to content

Commit 7289968

Browse files
committed
feat: migrate to replicated storage
1 parent a90b8d6 commit 7289968

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,23 +129,23 @@ shell-db:
129129
prod-shell-db:
130130
kubectl exec \
131131
-it \
132-
-n calcount \
132+
-n beancount \
133133
pod/db-postgresql-0 \
134-
-- /bin/sh -c 'psql postgresql://calcount:[email protected]:5432/calcount'
134+
-- /bin/sh -c 'psql postgresql://beancount:[email protected]:5432/beancount'
135135

136136
# Port-forward the production database to your local port 5433 (as to not
137137
# collide with your local PostgreSQL server).
138138
proxy-prod-db:
139-
kubectl -n calcount port-forward service/db-postgresql 5433:5432
139+
kubectl -n beancount port-forward service/db-postgresql 5433:5432
140140

141141
proxy-stripe-webhook:
142142
stripe listen --forward-to localhost:8000/stripe-webhook
143143

144144
backup-prod:
145145
kubectl exec \
146-
-n calcount \
146+
-n beancount \
147147
pod/db-postgresql-0 \
148-
-- /bin/sh -c 'pg_dump postgresql://calcount:[email protected]:5432/calcount' \
148+
-- /bin/sh -c 'pg_dump postgresql://beancount:[email protected]:5432/beancount' \
149149
> ~/Desktop/calcount_backups/backup-$(shell date '+%m-%d-%Y__%H:%M:%S').sql
150150

151151
build-container: setup

infra.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ data "external" "git_sha" {
6161
]
6262
}
6363

64-
module "basic-deployment" {
64+
module "beancount" {
6565
source = "jdevries3133/basic-deployment/kubernetes"
66-
version = "3.0.2"
66+
version = "3.2.0"
6767

68-
app_name = "calcount"
68+
app_name = "beancount"
6969
container = "jdevries3133/calcount:${data.external.git_sha.result.output}"
7070
domain = "beancount.bot"
7171

0 commit comments

Comments
 (0)