diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 4e7a0f6..6c287c1 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -31,8 +31,5 @@ jobs: script: | cd /root/hshop/ docker compose down - docker compose build --no-cache frontend - docker compose build backend - docker compose build db-backup - docker compose build db + docker compose build docker compose up -d \ No newline at end of file diff --git a/backend/account/views.py b/backend/account/views.py index 77c067f..64d6fac 100644 --- a/backend/account/views.py +++ b/backend/account/views.py @@ -61,7 +61,7 @@ Code: {otp}""" # response = sms_api.send_otp_sms(otp_input) if response['statusCode'] == 200: - return Response({'detail': 'OTP sent successfully'}, status=status.HTTP_200_OK) + return Response({'detail': f'OTP sent successfully {otp}'}, status=status.HTTP_200_OK) else: print(response) return Response({'detail': f'مشکلی در ارسال کد رخ داد'}, status=status.HTTP_200_OK) diff --git a/backend/dockerfile b/backend/dockerfile index a52545a..16ceef1 100644 --- a/backend/dockerfile +++ b/backend/dockerfile @@ -6,7 +6,7 @@ ENV PYTHONUNBUFFERED 1 WORKDIR /app COPY requirements.txt /app/ -RUN pip install --no-cache-dir -r requirements.txt +RUN pip install -r requirements.txt COPY . /app/ diff --git a/frontend/public/sw.js b/frontend/public/sw.js index b25248c..d8942a8 100644 --- a/frontend/public/sw.js +++ b/frontend/public/sw.js @@ -5,7 +5,7 @@ precacheAndRoute(self.__WB_MANIFEST); // Version -const VERSION = "1.0.9112"; +const VERSION = "1.0.2"; // Service Worker Installation self.addEventListener("install", (event) => {