Skip to content

Commit

Permalink
71: Update references to .env-template to new name .env.template.
Browse files Browse the repository at this point in the history
  • Loading branch information
lfse-slafleur committed Jul 5, 2024
1 parent 3ffe31d commit 287f49f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The infrastructure consists of the following components:
- Optimization workers

## Setup infrastructure
Copy `.env-template` to `.env` and fill with the appropriate values.
Copy `.env.template` to `.env` and fill with the appropriate values.
To setup the infrastructure components (for windows run in `Git Bash`):
```
./scripts/setup.sh
Expand Down
2 changes: 1 addition & 1 deletion scripts/_load_dot_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ else
echo ".env file at ${PATH_TO_DOT_ENV} does not exist. Environment variables are expected to be set in another way."
fi

ENV_VARS=$(cat ./.env-template | sed 's/\=.*//' | grep . -)
ENV_VARS=$(cat ./.env.template | sed 's/\=.*//' | grep . -)

any_missing=false
while IFS= read -r ENV_VAR; do
Expand Down
2 changes: 1 addition & 1 deletion scripts/test_system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export COMPOSE_PROJECT_NAME=omotes_system_tests
ENV_FILE=".env.test"
DOCKER_COMPOSE_FILE="./docker-compose.yml -f system_tests/docker-compose.override.yml"

cp .env-template ${ENV_FILE}
cp .env.template ${ENV_FILE}
sed -i 's/LOG_LEVEL=[a-z]*/LOG_LEVEL=WARNING/gi' ${ENV_FILE}

$DOCKER_COMPOSE --env-file ${ENV_FILE} -f $DOCKER_COMPOSE_FILE down -v
Expand Down

0 comments on commit 287f49f

Please sign in to comment.