Skip to content
Snippets Groups Projects
Commit 1295b282 authored by Mohammad Torkashvand's avatar Mohammad Torkashvand
Browse files

added unit tests for validate_subscriptions

parent 83fc6c76
Branches
Tags
1 merge request!110add python -m to run celery
Pipeline #84530 passed
...@@ -3,7 +3,7 @@ WORKDIR /app ...@@ -3,7 +3,7 @@ WORKDIR /app
ARG ARTIFACT_VERSION ARG ARTIFACT_VERSION
RUN apk add --no-cache gcc libc-dev libffi-dev && \ RUN apk add --no-cache gcc libc-dev libffi-dev curl vim && \
addgroup -S appgroup && adduser -S appuser -G appgroup -h /app addgroup -S appgroup && adduser -S appuser -G appgroup -h /app
RUN pip install \ RUN pip install \
......
...@@ -5,6 +5,5 @@ set -o nounset ...@@ -5,6 +5,5 @@ set -o nounset
cd /app/gso cd /app/gso
PYTHONPATH=.. python main.py db upgrade heads PYTHONPATH=.. python main.py db upgrade heads
# Start the FastAPI application
cd /app cd /app
python -m uvicorn "gso.main:app" --host "0.0.0.0" --port 8080 python -m uvicorn "gso.main:app" --host "0.0.0.0" --port 8080
...@@ -4,5 +4,4 @@ set -o errexit ...@@ -4,5 +4,4 @@ set -o errexit
set -o nounset set -o nounset
cd /app cd /app
python -m celery -A gso.worker beat -l info -S redbeat.RedBeatScheduler
celery -A gso.worker beat -l info -S redbeat.RedBeatScheduler
...@@ -4,5 +4,4 @@ set -o errexit ...@@ -4,5 +4,4 @@ set -o errexit
set -o nounset set -o nounset
cd /app cd /app
python -m celery -A gso.worker worker --loglevel=info
celery -A gso.worker worker --loglevel=info
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment