diff --git a/.kamal/secrets b/.kamal/secrets index 8e9699b1c..07b614917 100644 --- a/.kamal/secrets +++ b/.kamal/secrets @@ -17,7 +17,9 @@ POSTGRES_DB=$(echo "$SECRETS" | grep "MainDatabaseName" | sed "s/MainDatabaseNam PGUSER=$POSTGRES_USER PGDATABASE=$POSTGRES_DB -REDIS_PASSWORD=$(echo "$SECRETS" | grep "MainRedisPassword" | sed "s/MainRedisPassword=//") +MAIN_REDIS_PASSWORD=$(echo "$SECRETS" | grep "MainRedisPassword" | sed "s/MainRedisPassword=//") +MAIN_REDIS_HOST=redis +MAIN_REDIS_PORT=6379 # Option 3: Read secrets via kamal secrets helpers # These will handle logging in and fetching the secrets in as few calls as possible diff --git a/config/deploy.yml b/config/deploy.yml index a690568dc..35f4c9e1c 100644 --- a/config/deploy.yml +++ b/config/deploy.yml @@ -88,7 +88,7 @@ accessories: - web env: secret: - - REDIS_PASSWORD - cmd: "/bin/sh -c 'redis-server --requirepass $REDIS_PASSWORD'" + - MAIN_REDIS_PASSWORD + cmd: "/bin/sh -c 'redis-server --requirepass $MAIN_REDIS_PASSWORD'" directories: - redis-data:/data diff --git a/packages/core/src/redis/main/index.ts b/packages/core/src/redis/main/index.ts index 4c2a360f7..e4bf932d9 100644 --- a/packages/core/src/redis/main/index.ts +++ b/packages/core/src/redis/main/index.ts @@ -4,6 +4,7 @@ const MAIN_REDIS_PASSWORD = process.env.MAIN_REDIS_PASSWORD; const MAIN_REDIS_HOST = process.env.MAIN_REDIS_HOST; const MAIN_REDIS_PORT = process.env.MAIN_REDIS_PORT; +console.log("HERE:", MAIN_REDIS_PORT); export const redis = createClient({ password: MAIN_REDIS_PASSWORD, socket: {