Răsfoiți Sursa

Ajuste static files

Celestino Rey 1 an în urmă
părinte
comite
0acec3854f

+ 2 - 2
Fleet/70-finanzas-deployment.yaml

@@ -37,10 +37,10 @@ spec:
           - --bind
           - 0.0.0.0:8000
         name: finanzas
-        image: registry.reymota.es/finanzas-x86_64:0.41
+        image: registry.reymota.es/finanzas-x86_64:0.42
         env:
         - name: IMG_VERSION
-          value: "0.41"
+          value: "0.42"
         - name: OPENSHIFT
           value: "False"
         - name: ENVIRONMENT

+ 3 - 3
Fleet/75-nginx-deployment.yaml

@@ -24,15 +24,15 @@ spec:
         io.kompose.service: nginx
     spec:
       containers:
-        - image: registry.reymota.es/nginx-finanzas-x86_64:1.3
+        - image: registry.reymota.es/nginx-finanzas-x86_64:1.4
           name: nginx
           ports:
             - containerPort: 80
               protocol: TCP
           volumeMounts:
-            - mountPath: /app/finanzas/staticfiles
+            - mountPath: /app/src/staticfiles
               name: static-volume
-            - mountPath: /app/finanzas/mediafiles
+            - mountPath: /app/src/mediafiles
               name: finanzas-media
       imagePullSecrets:
       - name: myregistrykey

+ 2 - 2
K8S/Makefile

@@ -1,7 +1,7 @@
 export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':')
 export REGISTRY=registry.reymota.es
-export IMG_VERSION = 0.41
-export IMG_NGINX_VERSION = 1.3
+export IMG_VERSION = 0.42
+export IMG_NGINX_VERSION = 1.4
 
 # limpia todo
 all: imagen clean install

+ 2 - 2
K8S/nginx-deployment.yaml

@@ -30,9 +30,9 @@ spec:
             - containerPort: 80
               protocol: TCP
           volumeMounts:
-            - mountPath: /app/finanzas/staticfiles
+            - mountPath: /app/src/staticfiles
               name: static-volume
-            - mountPath: /app/finanzas/mediafiles
+            - mountPath: /app/src/mediafiles
               name: finanzas-media
       imagePullSecrets:
       - name: myregistrykey

+ 2 - 2
nginx/nginx.conf

@@ -15,11 +15,11 @@ server {
     }
 
     location /static/ {
-        alias /app/staticfiles/;
+        alias /app/src/staticfiles/;
     }
 
     location /media/ {
-        alias /app/mediafiles/;
+        alias /app/src/mediafiles/;
     }
 
 }