update
All checks were successful
Deploy to Production / build-and-deploy (push) Successful in 1m25s

This commit is contained in:
A'zamov Samandar
2025-11-05 18:23:36 +05:00
parent 0fe40f78d1
commit 3ea6b388a0
3 changed files with 3 additions and 12 deletions

View File

@@ -89,15 +89,6 @@ jobs:
cd $DIR cd $DIR
git fetch origin main git fetch origin main
git reset --hard origin/main git reset --hard origin/main
cp .env.example .env
update_env() {
local env_file=".env"
cp .env.example "$env_file"
for kv in "$@"; do
local key="${kv%%=*}"
local value="${kv#*=}"
sed -i "s|^$key=.*|$key=$value|" "$env_file"
done
}
export PORT=${{ vars.PORT }} export PORT=${{ vars.PORT }}
docker stack deploy -c stack.yaml ${{ env.PROJECT_NAME }} docker stack deploy -c stack.yaml ${{ env.PROJECT_NAME }}

View File

@@ -8,7 +8,7 @@ SECRET_KEY = "django-insecure-5s(cd7jbyv*&ru3&m$5*8qorh0))k*j4*6p400joal6$t-y6a7
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True
ALLOWED_HOSTS = [] ALLOWED_HOSTS = ["*"]
# Application definition # Application definition

View File

@@ -4,7 +4,7 @@ services:
auth: auth:
image: jscorptech/taxi-auth:5 image: jscorptech/taxi-auth:5
env_file: env_file:
- .env - /opt/env/.auth
networks: networks:
- taxi - taxi
ports: ports: