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 locally change storage for the backend.
  • Loading branch information
fredvd committed Apr 23, 2024
1 parent 81a82ee commit 7d3bb5e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2024-04-23

- Add support for an instance-local.yaml file in the backend which is git ignored, so you can locally change storage for the backend. [fredvd]

# 2024-03-08

- Switch to plone.distribution. [pbauer]
Expand Down
1 change: 1 addition & 0 deletions backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ live.cfg
inituser
pip-wheel-metadata
pyvenv.cfg
instance-local.yaml
7 changes: 6 additions & 1 deletion backend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,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 7d3bb5e

Please sign in to comment.