Skip to content

Commit

Permalink
Build: postgreSQL 사용하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
sejokim committed Mar 23, 2024
1 parent f0caa71 commit 6fd8966
Show file tree
Hide file tree
Showing 19 changed files with 175 additions and 483 deletions.
32 changes: 0 additions & 32 deletions backend/friends/migrations/0001_initial.py

This file was deleted.

88 changes: 0 additions & 88 deletions backend/games/migrations/0001_initial.py

This file was deleted.

18 changes: 0 additions & 18 deletions backend/games/migrations/0002_game_started_at.py

This file was deleted.

25 changes: 0 additions & 25 deletions backend/games/migrations/0003_casualgamelistview.py

This file was deleted.

30 changes: 15 additions & 15 deletions backend/src/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def wait_for_vault_client(client, retries=5, delay=5):
if DEBUG:
# DB
DB_HOST = config('DB_HOST')
DB_PASSWORD = config('DB_PASSWORD')
DB_USER = config('DB_USER')
POSTGRES_PASSWORD = config('POSTGRES_PASSWORD')
POSTGRES_USER = config('POSTGRES_USER')
DB_DATABASE = config('DB_DATABASE')
DB_PORT = config('DB_PORT')

Expand Down Expand Up @@ -175,11 +175,11 @@ def wait_for_vault_client(client, retries=5, delay=5):
'django_prometheus',
]

ELASTICSEARCH_DSL = {
'default': {
'hosts': 'localhost:9200'
},
}
# ELASTICSEARCH_DSL = {
# 'default': {
# 'hosts': 'localhost:9200'
# },
# }

AUTH_USER_MODEL = 'users.User'

Expand Down Expand Up @@ -230,9 +230,9 @@ def wait_for_vault_client(client, retries=5, delay=5):
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': env('DB_DATABASE'),
'USER': env('DB_USER'),
'PASSWORD': env('DB_PASSWORD'),
'NAME': 'db_name',
'USER': env('POSTGRES_USER'),
'PASSWORD': env('POSTGRES_PASSWORD'),
'HOST': env('DB_HOST'),
'PORT': env('DB_PORT'),
}
Expand All @@ -241,11 +241,11 @@ def wait_for_vault_client(client, retries=5, delay=5):
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': db_name,
'USER': db_user,
'PASSWORD': db_password,
'HOST': db_host,
'PORT': db_port,
'NAME': 'db_name',
'USER': env('POSTGRES_USER'),
'PASSWORD': env('POSTGRES_PASSWORD'),
'HOST': env('DB_HOST'),
'PORT': env('DB_PORT'),
}
}

Expand Down
36 changes: 0 additions & 36 deletions backend/users/migrations/0001_initial.py

This file was deleted.

18 changes: 0 additions & 18 deletions backend/users/migrations/0002_user_is_online.py

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions backend/users/migrations/0004_alter_user_avatar.py

This file was deleted.

18 changes: 0 additions & 18 deletions backend/users/migrations/0005_alter_user_avatar.py

This file was deleted.

18 changes: 0 additions & 18 deletions backend/users/migrations/0006_alter_user_avatar.py

This file was deleted.

18 changes: 0 additions & 18 deletions backend/users/migrations/0007_alter_user_avatar.py

This file was deleted.

Loading

0 comments on commit 6fd8966

Please sign in to comment.