Skip to content

Commit

Permalink
Add support for an instance-local.yaml file in the backend which is g…
Browse files Browse the repository at this point in the history
…it ignored, so you can for example change storage location of type for the backend.
  • Loading branch information
fredvd committed Apr 23, 2024
1 parent 6456a56 commit 82a22e5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion {{ cookiecutter.project_slug }}/backend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@ bin/pip:
.PHONY: config
config: bin/pip ## Create instance configuration
@echo "$(GREEN)==> Create instance configuration$(RESET)"
bin/cookiecutter -f --no-input --config-file instance.yaml gh:plone/cookiecutter-zope-instance
if [[ -s instance-override.yaml ]]; then \
echo " Using instance-local.yaml"; \
bin/cookiecutter -f --no-input --config-file instance-local.yaml gh:plone/cookiecutter-zope-instance ;\
else \
bin/cookiecutter -f --no-input --config-file instance.yaml gh:plone/cookiecutter-zope-instance ;\
fi

# i18n
bin/i18ndude: bin/pip
Expand Down

0 comments on commit 82a22e5

Please sign in to comment.