From 69583ca3c028f12c30412df6973fcc986375180a Mon Sep 17 00:00:00 2001 From: sadnub Date: Sun, 10 Jan 2021 13:17:49 -0500 Subject: [PATCH] docker dev fixes --- .devcontainer/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.devcontainer/entrypoint.sh b/.devcontainer/entrypoint.sh index 1a78321d..f44e724f 100644 --- a/.devcontainer/entrypoint.sh +++ b/.devcontainer/entrypoint.sh @@ -68,7 +68,7 @@ KEY_FILE = '/opt/tactical/certs/privkey.pem' SCRIPTS_DIR = '${WORKSPACE_DIR}/scripts' -ALLOWED_HOSTS = ['${API_HOST}'] +ALLOWED_HOSTS = ['${API_HOST}', 'localhost', '127.0.0.1'] ADMIN_URL = 'admin/' @@ -137,7 +137,7 @@ if [ "$1" = 'tactical-init-dev' ]; then test -f "${TACTICAL_READY_FILE}" && rm "${TACTICAL_READY_FILE}" # setup Python virtual env and install dependencies - python -m venv --copies ${VIRTUAL_ENV} + test -f ${VIRTUAL_ENV} && python -m venv --copies ${VIRTUAL_ENV} pip install --no-cache-dir -r /requirements.txt django_setup