Commit 83cd29ce authored by carlosribas's avatar carlosribas
Browse files

Change the path to the static files

parent c962e4c8
......@@ -62,7 +62,7 @@ RUN cd rnacentral/portal/static && npm install --only=production
# Copy and chown all the files to the rnacentral user
COPY rnacentral/ $RNACENTRAL_HOME/
RUN chown -R rnacentral:rnacentral /srv/rnacentral
RUN chown -R rnacentral:rnacentral /srv
# Install and configure packages for local development if needed
RUN \
......
......@@ -21,7 +21,7 @@ services:
expose:
- 8000
volumes:
- static_volume:/srv/rnacentral/static
- static_volume:/srv/static
- ./openssl/openssl.cnf:/etc/ssl/openssl.cnf
depends_on:
- redis
......@@ -47,7 +47,7 @@ services:
- 8000:80
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- static_volume:/srv/rnacentral/static
- static_volume:/srv/static
depends_on:
- rnacentral
networks:
......
......@@ -28,7 +28,7 @@ data:
location /static/ {
autoindex on;
alias /srv/rnacentral/static/;
alias /srv/static/;
}
location / {
......@@ -57,7 +57,7 @@ spec:
rollme: {{ randAlphaNum 5 | quote }}
spec:
containers:
- image: nginx:1.17-alpine
- image: nginx:1.20-alpine
name: nginx
resources:
requests:
......@@ -73,7 +73,7 @@ spec:
mountPath: /etc/nginx/conf.d/local.conf
subPath: local.conf
- name: static-volume
mountPath: /srv/rnacentral/static
mountPath: /srv/static
restartPolicy: Always
volumes:
- name: nginx-config
......
......@@ -43,7 +43,7 @@ spec:
cpu: {{ .Values.rnacentralLimitsCPU }}
volumeMounts:
- name: static-volume
mountPath: /srv/rnacentral/static
mountPath: /srv/static
envFrom:
- secretRef:
name: {{ .Values.database }}
......
......@@ -16,6 +16,6 @@ server {
location /static/ {
autoindex on;
alias /srv/rnacentral/static/;
alias /srv/static/;
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment