Skip to content

Commit

Permalink
chore: update variable for frontend test server hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
salman2013 committed Oct 30, 2023
1 parent f71e650 commit de935e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pavelib/utils/envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ class Env:
PRINT_SETTINGS_LOG_FILE = GEN_LOG_DIR / "print_settings.log"

# Detect if in a Docker container, and if so which one
SERVER_HOST = os.environ.get('SERVER_HOSTNAME', '0.0.0.0')
USING_DOCKER = SERVER_HOST != '0.0.0.0'
FRONTEND_TEST_SERVER_HOST = os.environ.get('FRONTEND_TEST_SERVER_HOSTNAME', '0.0.0.0')
USING_DOCKER = FRONTEND_TEST_SERVER_HOST != '0.0.0.0'
DEVSTACK_SETTINGS = 'devstack_docker' if USING_DOCKER else 'devstack'
TEST_SETTINGS = 'test'

Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ setenv =
PYTHONHASHSEED=0
TOXENV={envname}
passenv =
SERVER_CMS_PORT
SERVER_HOSTNAME
SERVER_LMS_PORT
FRONTEND_TEST_CMS_PORT
FRONTEND_TEST_SERVER_HOSTNAME
FRONTEND_TEST_LMS_PORT
DISABLE_COURSEENROLLMENT_HISTORY
DISPLAY
DJANGO_SETTINGS_MODULE
Expand Down

0 comments on commit de935e1

Please sign in to comment.