penguin/AstroJS

Javascript framework for my blog

commit 0640442953a7c2411351c3f7a7f471158b27dfa1

author斟酌 鵬兄 <tgckpg@gmail.com>
date2020-09-22T18:03:35Z
subjectUse a local redis instance
commit 0640442953a7c2411351c3f7a7f471158b27dfa1
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2020-09-22T18:03:35Z

    Use a local redis instance
---
 k8s.yaml     | 6 ++++--
 settings.ini | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/k8s.yaml b/k8s.yaml
index 14756a5..eb23527 100644
--- a/k8s.yaml
+++ b/k8s.yaml
@@ -19,7 +19,7 @@ spec:
             path: /srv/astrostorage
       containers:
         - name: web
-          image: 192.168.80.4:32000/sites/astrojs:b00017
+          image: 192.168.80.4:32000/sites/astrojs:b00019
           volumeMounts:
             - mountPath: "/app/cache"
               name: astrojs-cache
@@ -30,8 +30,10 @@ spec:
               value: "production"
             - name: RUN_MODE
               value: "web"
+        - name: redis
+          image: redis:6.0.8-alpine
         - name: compiler
-          image: 192.168.80.4:32000/sites/astrojs:b00017
+          image: 192.168.80.4:32000/sites/astrojs:b00018
           volumeMounts:
             - mountPath: "/app/cache"
               name: astrojs-cache
diff --git a/settings.ini b/settings.ini
index c1883dc..ab9f7d0 100644
--- a/settings.ini
+++ b/settings.ini
@@ -13,7 +13,7 @@ Cache = ${SiteRoot}/cache
 [BotanJS]
 SrcDir = ${Paths:Runtime}/botanjs/src
 
-CeleryBroker = redis://:@astrop-redis.default:6379/9
+CeleryBroker = redis://:@localhost:6379/9
 
 ClosureCompiler = /opt/utils/closure.jar
 YuiCompressor = /opt/utils/yuicompressor.jar