From dae3ec8dfdc4c5aaa1db46e0ac13d37c147bd4cd Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Sun, 13 May 2018 09:42:37 +0200 Subject: [PATCH] Use port 9100 for dev, fix 1.7 upgrade script --- app/scripts/upgrade_from_1.6_to_1.7.sh | 1 + env/dev.yml | 2 +- telemeta/views/item.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/scripts/upgrade_from_1.6_to_1.7.sh b/app/scripts/upgrade_from_1.6_to_1.7.sh index 30d73eed..af74807e 100755 --- a/app/scripts/upgrade_from_1.6_to_1.7.sh +++ b/app/scripts/upgrade_from_1.6_to_1.7.sh @@ -1,5 +1,6 @@ #!/bin/bash +python manage.py migrate python manage.py migrate contenttypes --fake-initial python manage.py migrate --fake-initial python manage.py migrate thumbnail --fake-initial diff --git a/env/dev.yml b/env/dev.yml index 11c857e3..f5e68cc3 100644 --- a/env/dev.yml +++ b/env/dev.yml @@ -28,7 +28,7 @@ app: - env/debug.env command: /bin/bash scripts/app.sh --runserver ports: - - 9000:8000 + - 9100:8000 worker: image: parisson/telemeta:latest diff --git a/telemeta/views/item.py b/telemeta/views/item.py index dd4cf2df..6a94f5d0 100644 --- a/telemeta/views/item.py +++ b/telemeta/views/item.py @@ -289,7 +289,7 @@ class ItemView(ItemBaseMixin): if 'waveform_centroid' in grapher_id and self.cache_data.exists(old_image_file): image_file = old_image_file - path = self.cache_data.dir + os.sep + image_file + path = self.cache_data.dir + os.sep + image_file if not self.cache_data.exists(image_file): source, _ = item.get_source() if source: -- 2.39.5