Home Information - Your home, your data, organized.
Python
Dockerfile bug fix and environment generation safety check.
Anthony Cassandra38c34972be10
diff --git a/Dockerfile b/Dockerfileindex e5133308..f532b148 100644--- a/Dockerfile+++ b/Dockerfile@@ -25,10 +25,10 @@ HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \COPY src/hi/requirements/base.txt /src/requirements.txtRUN pip install --no-cache-dir --root-user-action=ignore -r requirements.txt-COPY packaging/docker_supervisord.conf /etc/supervisor/conf.d/hi.conf-COPY packaging/docker_nginx.conf /etc/nginx/sites-available/default+COPY package/docker_supervisord.conf /etc/supervisor/conf.d/hi.conf+COPY package/docker_nginx.conf /etc/nginx/sites-available/default-COPY packaging/docker_entrypoint.sh /src/entrypoint.sh+COPY package/docker_entrypoint.sh /src/entrypoint.shRUN chmod +x /src/entrypoint.shCOPY src /srcdiff --git a/deploy/env-generate.py b/deploy/env-generate.pyindex a3015f8a..0fad2a2c 100755--- a/deploy/env-generate.py+++ b/deploy/env-generate.py@@ -84,7 +84,7 @@ class HiEnvironmentGenerator:if env_name not in [ 'development', 'local', 'staging', 'production' ]:self.print_warning( f'Non-standard environment name "{env_name}".'f'Ensure that the file "hi/settings/{env_name}.py" exists.' )-+self._env_name = env_nameself._verbose = verbose@@ -114,6 +114,10 @@ class HiEnvironmentGenerator:def generate_env_file( self ):+ if self._env_name == 'production':+ print( '\n* ERROR * This script should not be used to generate production settings!\n' )+ return+self.print_important('This script will help you generate your initial environment variables.''\nYou usually only need to run this once.'