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 ...@@ -62,7 +62,7 @@ RUN cd rnacentral/portal/static && npm install --only=production
# Copy and chown all the files to the rnacentral user # Copy and chown all the files to the rnacentral user
COPY rnacentral/ $RNACENTRAL_HOME/ 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 # Install and configure packages for local development if needed
RUN \ RUN \
......
...@@ -21,7 +21,7 @@ services: ...@@ -21,7 +21,7 @@ services:
expose: expose:
- 8000 - 8000
volumes: volumes:
- static_volume:/srv/rnacentral/static - static_volume:/srv/static
- ./openssl/openssl.cnf:/etc/ssl/openssl.cnf - ./openssl/openssl.cnf:/etc/ssl/openssl.cnf
depends_on: depends_on:
- redis - redis
...@@ -47,7 +47,7 @@ services: ...@@ -47,7 +47,7 @@ services:
- 8000:80 - 8000:80
volumes: volumes:
- ./nginx/conf.d:/etc/nginx/conf.d - ./nginx/conf.d:/etc/nginx/conf.d
- static_volume:/srv/rnacentral/static - static_volume:/srv/static
depends_on: depends_on:
- rnacentral - rnacentral
networks: networks:
......
...@@ -28,7 +28,7 @@ data: ...@@ -28,7 +28,7 @@ data:
location /static/ { location /static/ {
autoindex on; autoindex on;
alias /srv/rnacentral/static/; alias /srv/static/;
} }
location / { location / {
...@@ -57,7 +57,7 @@ spec: ...@@ -57,7 +57,7 @@ spec:
rollme: {{ randAlphaNum 5 | quote }} rollme: {{ randAlphaNum 5 | quote }}
spec: spec:
containers: containers:
- image: nginx:1.17-alpine - image: nginx:1.20-alpine
name: nginx name: nginx
resources: resources:
requests: requests:
...@@ -73,7 +73,7 @@ spec: ...@@ -73,7 +73,7 @@ spec:
mountPath: /etc/nginx/conf.d/local.conf mountPath: /etc/nginx/conf.d/local.conf
subPath: local.conf subPath: local.conf
- name: static-volume - name: static-volume
mountPath: /srv/rnacentral/static mountPath: /srv/static
restartPolicy: Always restartPolicy: Always
volumes: volumes:
- name: nginx-config - name: nginx-config
......
...@@ -43,7 +43,7 @@ spec: ...@@ -43,7 +43,7 @@ spec:
cpu: {{ .Values.rnacentralLimitsCPU }} cpu: {{ .Values.rnacentralLimitsCPU }}
volumeMounts: volumeMounts:
- name: static-volume - name: static-volume
mountPath: /srv/rnacentral/static mountPath: /srv/static
envFrom: envFrom:
- secretRef: - secretRef:
name: {{ .Values.database }} name: {{ .Values.database }}
......
...@@ -16,6 +16,6 @@ server { ...@@ -16,6 +16,6 @@ server {
location /static/ { location /static/ {
autoindex on; 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