deploy script
This commit is contained in:
@@ -8,8 +8,8 @@ def get_env(name, default=""):
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||
'HOST': get_env("POSTGRES_HOST", "postgres"),
|
||||
'PORT': get_env("POSTGRES_PORT", "5433"),
|
||||
'HOST': get_env("POSTGRES_HOST", "oj-postgres"),
|
||||
'PORT': get_env("POSTGRES_PORT", "5432"),
|
||||
'NAME': get_env("POSTGRES_DB"),
|
||||
'USER': get_env("POSTGRES_USER"),
|
||||
'PASSWORD': get_env("POSTGRES_PASSWORD")
|
||||
@@ -17,7 +17,7 @@ DATABASES = {
|
||||
}
|
||||
|
||||
REDIS_CONF = {
|
||||
"host": get_env("REDIS_HOST", "redis"),
|
||||
"host": get_env("REDIS_HOST", "oj-redis"),
|
||||
"port": get_env("REDIS_PORT", "6379")
|
||||
}
|
||||
|
||||
@@ -25,12 +25,4 @@ DEBUG = False
|
||||
|
||||
ALLOWED_HOSTS = ['*']
|
||||
|
||||
AVATAR_URI_PREFIX = "/static/avatar"
|
||||
AVATAR_UPLOAD_DIR = "/data/avatar"
|
||||
|
||||
UPLOAD_PREFIX = "/static/upload"
|
||||
UPLOAD_DIR = "/data/upload"
|
||||
|
||||
TEST_CASE_DIR = "/data/test_case"
|
||||
LOG_PATH = "/data/log"
|
||||
DEFAULT_JUDGE_SERVER_SERVICE_URL = "http://judge-server:8080/"
|
||||
DATA_DIR = "/data"
|
||||
|
||||
Reference in New Issue
Block a user