update
All checks were successful
Deploy to Production / build-and-deploy (push) Successful in 1m25s
All checks were successful
Deploy to Production / build-and-deploy (push) Successful in 1m25s
This commit is contained in:
11
.github/workflows/deploy.yaml
vendored
11
.github/workflows/deploy.yaml
vendored
@@ -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 }}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user