[odrs-web/oscp] The json should end up on the static dir
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [odrs-web/oscp] The json should end up on the static dir
- Date: Wed, 14 Nov 2018 10:50:31 +0000 (UTC)
commit adbf7cbe8573f94b32cb61e87f0131a0d47830ba
Author: Andrea Veri <averi redhat com>
Date: Wed Nov 14 11:50:20 2018 +0100
The json should end up on the static dir
Dockerfile | 2 +-
odrs.gnome.org.conf | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index 97a16b5..344660a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -15,7 +15,7 @@ COPY app_data ${ODRS_HOME}
COPY odrs.gnome.org.conf /etc/httpd/conf.d/odrs.gnome.org.conf
RUN rm /etc/httpd/conf.d/welcome.conf
-RUN python /opt/app-root/src/cron.py ratings /opt/app-root/src/ratings.json
+RUN python /opt/app-root/src/cron.py ratings /opt/app-root/src/app/static/ratings.json
COPY odrs.cron /etc/cron.d/odrs
RUN chown -R 1000310000:0 ${ODRS_HOME} && \
diff --git a/odrs.gnome.org.conf b/odrs.gnome.org.conf
index 08a1dfc..bd81e9c 100644
--- a/odrs.gnome.org.conf
+++ b/odrs.gnome.org.conf
@@ -8,7 +8,7 @@
SSLCertificateKeyFile /var/serving-cert/tls.key
Alias /static/ /opt/app-root/src/app/static
- Alias /1.0/reviews/api/ratings /opt/app-root/src/ratings.json
+ Alias /1.0/reviews/api/ratings /opt/app-root/src/app/static/ratings.json
WSGIDaemonProcess odrs.gnome.org processes=10 threads=15 maximum-requests=100
WSGIProcessGroup odrs.gnome.org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]