mirror of
https://github.com/fergalmoran/dss.api.git
synced 2025-12-24 02:08:54 +00:00
Fixed mix tag
This commit is contained in:
@@ -16,7 +16,7 @@ WORKDIR /code
|
|||||||
ADD requirements.txt /code/
|
ADD requirements.txt /code/
|
||||||
ADD . /code/
|
ADD . /code/
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y sox lame vim ccze node npm \
|
RUN apt-get update --fix-missing && apt-get install -y sox lame vim ccze node npm \
|
||||||
libboost-program-options-dev libsox-fmt-mp3 postgresql-client rsync openssh-client
|
libboost-program-options-dev libsox-fmt-mp3 postgresql-client rsync openssh-client
|
||||||
|
|
||||||
RUN npm install -g yuglify
|
RUN npm install -g yuglify
|
||||||
|
|||||||
@@ -61,4 +61,4 @@ def enumerate_objects(container):
|
|||||||
|
|
||||||
def delete_object(container, name):
|
def delete_object(container, name):
|
||||||
blob_service = BlobService(AZURE_ACCOUNT_NAME, AZURE_ACCOUNT_KEY)
|
blob_service = BlobService(AZURE_ACCOUNT_NAME, AZURE_ACCOUNT_KEY)
|
||||||
blob_service.delete_blob(container, name)
|
blob_service.delete_blob(container, name)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import os
|
|||||||
|
|
||||||
print("Importing storage settings")
|
print("Importing storage settings")
|
||||||
|
|
||||||
AZURE_ACCOUNT_NAME = os.environ.get('CDN_NAME', 'dsscdn')
|
AZURE_ACCOUNT_NAME = os.environ.get('CDN_NAME', 'dsscdn2')
|
||||||
AZURE_CONTAINER = 'media'
|
AZURE_CONTAINER = 'media'
|
||||||
AZURE_ACCOUNT_KEY = localsettings.AZURE_ACCOUNT_KEY
|
AZURE_ACCOUNT_KEY = localsettings.AZURE_ACCOUNT_KEY
|
||||||
AZURE_ITEM_BASE_URL = 'https://{}.blob.core.windows.net/'.format(AZURE_ACCOUNT_NAME)
|
AZURE_ITEM_BASE_URL = 'https://{}.blob.core.windows.net/'.format(AZURE_ACCOUNT_NAME)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ from spa.models.mix import Mix
|
|||||||
|
|
||||||
|
|
||||||
def _update_azure_headers():
|
def _update_azure_headers():
|
||||||
ms = Mix.objects.all()
|
ms = Mix.objects.filter(slug='september-2015')
|
||||||
for m in ms:
|
for m in ms:
|
||||||
print("Update headers for {0}".format(m.title))
|
print("Update headers for {0}".format(m.title))
|
||||||
cdn.set_azure_details(
|
cdn.set_azure_details(
|
||||||
|
|||||||
Reference in New Issue
Block a user