Skip to content

Commit

Permalink
Use a variable to determine the target
Browse files Browse the repository at this point in the history
The commit makes usage of a variable in the `config.mk` file to
determine the target configuration file dynamically based on the
environment. This change enhances the flexibility and efficiency of the
script, allowing for seamless configuration adjustments across different
environments.
  • Loading branch information
placek committed Apr 11, 2024
1 parent 2790e15 commit 51b9431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/govtool/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ clear:
$(output_dirs):
mkdir -p $@

$(target_config_dir)/docker-compose.yml: $(template_config_dir)/docker-compose.yml.tpl $(target_config_dir)/
$(docker_compose_file): $(template_config_dir)/docker-compose.yml.tpl $(target_config_dir)/
if [[ "$(env)" == "dev" ]]; then CSP_ALLOWED_HOSTS=",http://localhost"; else CSP_ALLOWED_HOSTS=; fi; \
sed -e "s|<DOMAIN>|$(domain)|g" \
-e "s|<DOCKER_USER>|$(docker_user)|g" \
Expand Down

0 comments on commit 51b9431

Please sign in to comment.