From 50e5b807d19636ffa376f1360acc805ad77e61f8 Mon Sep 17 00:00:00 2001 From: Devin Gaffney Date: Wed, 13 Sep 2023 07:07:39 -0700 Subject: [PATCH 1/2] CV2-3435 update config for port --- docker-compose.yml | 2 ++ local.env | 4 +++- start_all.sh | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1ae1eaf..e94ef36 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,6 +12,8 @@ services: - elasticmq volumes: - ./:/app + ports: + - "8000:8000" elasticmq: image: softwaremill/elasticmq hostname: presto-elasticmq diff --git a/local.env b/local.env index cb4e7c6..b9c2b3e 100644 --- a/local.env +++ b/local.env @@ -1,4 +1,6 @@ +PRESTO_PORT=8000 DEPLOY_ENV=local -MODEL_NAME=mean_tokens.Model +# MODEL_NAME=mean_tokens.Model +MODEL_NAME=audio.Model AWS_ACCESS_KEY_ID=SOMETHING AWS_SECRET_ACCESS_KEY=OTHERTHING diff --git a/start_all.sh b/start_all.sh index f3c9197..eb4eaf5 100755 --- a/start_all.sh +++ b/start_all.sh @@ -1,9 +1,9 @@ #!/bin/sh # Start the first process in the background -uvicorn main:app --host 0.0.0.0 --reload & +uvicorn main:app --host 0.0.0.0 --port ${PRESTO_PORT} --reload & # Start the second process in the foreground # This will ensure the script won't exit until this process does -python run_worker.py & +python run_worker.py & python run_processor.py \ No newline at end of file From 8582f3b57c12a920de2579546de11cb2084a426e Mon Sep 17 00:00:00 2001 From: Devin Gaffney Date: Thu, 14 Sep 2023 11:25:21 -0700 Subject: [PATCH 2/2] add .env_file --- .env_file.test | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .env_file.test diff --git a/.env_file.test b/.env_file.test new file mode 100644 index 0000000..97002b8 --- /dev/null +++ b/.env_file.test @@ -0,0 +1,7 @@ +PRESTO_PORT=8000 +DEPLOY_ENV=local +# MODEL_NAME=mean_tokens.Model +MODEL_NAME=audio.Model +AWS_ACCESS_KEY_ID=SOMETHING +AWS_SECRET_ACCESS_KEY=OTHERTHING +