From 21fd84d6b4aca0f06ce76fb8cde124d352f8f2c5 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 21 Dec 2015 12:12:12 +0100 Subject: [PATCH] add phpmyadmin url, prepare video sharing --- app/deploy/nginx-app.conf | 5 +++++ app/deploy/start_app.sh | 2 +- telemeta/templates/telemeta/mediaitem_detail.html | 9 ++++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/app/deploy/nginx-app.conf b/app/deploy/nginx-app.conf index 4aaec53a..ecafdd04 100644 --- a/app/deploy/nginx-app.conf +++ b/app/deploy/nginx-app.conf @@ -20,6 +20,11 @@ server { alias /srv/static; # your Django project's static files - amend as required } + # phpmyadmin + location /phpmyadmin { + proxy_pass http://localhost:10000/; + } + location / { uwsgi_pass app:8000; include /etc/nginx/uwsgi_params; diff --git a/app/deploy/start_app.sh b/app/deploy/start_app.sh index 18c1695c..0b3947ee 100644 --- a/app/deploy/start_app.sh +++ b/app/deploy/start_app.sh @@ -32,7 +32,7 @@ fi # static files auto update watchmedo shell-command --patterns="*.js;*.css" --recursive \ - --command='python '$manage' collectstatic --noinput' $static & + --command='python '$manage' collectstatic --noinput' $static & # app start uwsgi --socket :$port --wsgi-file $wsgi --chdir $app --master --processes $processes --threads $threads --py-autoreload $autoreload diff --git a/telemeta/templates/telemeta/mediaitem_detail.html b/telemeta/templates/telemeta/mediaitem_detail.html index d8d6b4fd..eb252b7c 100644 --- a/telemeta/templates/telemeta/mediaitem_detail.html +++ b/telemeta/templates/telemeta/mediaitem_detail.html @@ -166,9 +166,14 @@ -
+ + +{% comment %} +
+{% endcomment %} + {% endif %} -- 2.39.5