Skip to content

Commit bd68356

Browse files
committed
infra: cleanup and infra setup changes.
1 parent 264e123 commit bd68356

File tree

6 files changed

+8
-56
lines changed

6 files changed

+8
-56
lines changed

.env.example

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ POSTGRES_DB=zygdb
44
DATABASE_HOST=database:5432
55
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
66

7+
REDIS_ADDR=
8+
REDIS_PASS=
9+
710
# Get these from Supabase console.
811
SUPABASE_JWT_SECRET=
912

.github/workflows/srv.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,11 @@ jobs:
8989
ExecStart=/usr/local/bin/app -host 0.0.0.0 -port 8080
9090
WorkingDirectory=/usr/local/bin/
9191
92-
Environment=DATABASE_URL=${{ secrets.DATABASE_URL }}
92+
Environment=DATABASE_URL=${{ secrets.DATABASE_URL }}
93+
9394
Environment=REDIS_ADDR=${{ secrets.REDIS_ADDR }}
95+
Environment=REDIS_PASS=${{ secrets.REDIS_PASS }}
96+
9497
9598
Environment=SUPABASE_JWT_SECRET=${{ secrets.SUPABASE_JWT_SECRET }}
9699
Environment=RESEND_API_KEY=${{ secrets.RESEND_API_KEY }}

backend/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func RedisAddr() string {
9797
}
9898

9999
func RedisPassword() string {
100-
value, ok := os.LookupEnv("REDIS_PWD")
100+
value, ok := os.LookupEnv("REDIS_PASS")
101101
if !ok {
102102
return ""
103103
}

backend/deploy-xsrv.sh

-25
This file was deleted.

backend/deploy.sh

-25
This file was deleted.

zyg.code-workspace

-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
"path": "frontend",
1313
"name": "frontend"
1414
},
15-
{
16-
"path": "widget",
17-
"name": "widget"
18-
},
1915
{
2016
"path": ".",
2117
"name": "zyg"

0 commit comments

Comments
 (0)