Skip to content

Commit

Permalink
fix ci-tests, env.example
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-lymar committed May 18, 2024
1 parent 145644a commit 8cdb08a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# Debug
DEBUG=True
DEBUG = True

# CORS
CORS_ORIGIN_ALLOW_ALL=False
CORS_ALLOW_CREDENTIALS=True
CORS_ALLOWED_ORIGINS=http://...
CORS_ORIGIN_ALLOW_ALL = False
CORS_ALLOW_CREDENTIALS = True
CORS_ALLOWED_ORIGINS = http://...

# Allowed hosts
ALLOWED_HOSTS=*
ALLOWED_HOSTS = *

# Database variables
DATABASE_NAME=db_name
DATABASE_USER=db_user
DATABASE_PASSWORD=db_password
DATABASE_HOST=db
DATABASE_PORT=5432
DATABASE_NAME = db_name
DATABASE_USER = db_user
DATABASE_PASSWORD = db_password
DATABASE_HOST = db
DATABASE_PORT = 5432

# Django secret key
SECRET_KEY = django-insecure-your_secret_key

# Mail secret key
EMAIL_HOST=smtp.mail
EMAIL_PORT=port.mail
EMAIL_USE_SSL=True
EMAIL_HOST = smtp.mail
EMAIL_PORT = port.mail
EMAIL_USE_SSL = True
EMAIL_HOST_USER = example@mail.com
EMAIL_HOST_PASSWORD = email_password
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
DATABASE_HOST: postgres
DATABASE_PORT: 5432
DEBUG: ${{ secrets.DEBUG }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
run: python3 manage.py migrate
- name: Tests
env:
Expand Down

0 comments on commit 8cdb08a

Please sign in to comment.