mirror of
https://github.com/fergalmoran/dss.api.git
synced 2025-12-22 09:18:13 +00:00
Fixed wave generation
This commit is contained in:
@@ -12,6 +12,7 @@ RUN mkdir /files/tmp
|
||||
WORKDIR /code
|
||||
ADD requirements.txt /code/
|
||||
RUN pip install -r requirements.txt
|
||||
RUN apt-get update && apt-get install -y sox lame libboost-program-options-dev libsox-fmt-mp3
|
||||
ADD . /code/
|
||||
|
||||
RUN adduser --disabled-password --gecos '' djworker
|
||||
|
||||
BIN
bin/wav2png
Executable file
BIN
bin/wav2png
Executable file
Binary file not shown.
@@ -5,7 +5,7 @@ import os
|
||||
from celery import Celery
|
||||
|
||||
# set the default Django settings module for the 'celery' program.
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proj.settings')
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dss.settings')
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
#!/bin/sh
|
||||
su -m djworker -c "sleep 3 && celery worker -A dss.celeryconf -Q default"
|
||||
chown djworker /files -R
|
||||
chown djworker /tmp/dss.log
|
||||
Reference in New Issue
Block a user