From 7af8dcc5bccbd3845d255dd01794f5b44742d200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Katja=20Su=CC=88ss?= Date: Sat, 7 Sep 2024 11:36:34 +0200 Subject: [PATCH] Update README: export content to distribution --- Makefile | 8 ++++++++ README.md | 2 +- backend/Makefile | 4 ++++ classic/Makefile | 4 ++++ 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3cee99a..01a9ccf 100644 --- a/Makefile +++ b/Makefile @@ -48,6 +48,10 @@ install-backend: ## Create virtualenv and install Plone build-backend: ## Build Backend $(MAKE) -C "./backend/" build-dev +.PHONY: export-distribution +export-distribution: ## Export content + $(MAKE) -C "./backend/" export-distribution + .PHONY: create-site create-site: ## Create a Plone site with default content $(MAKE) -C "./backend/" create-site @@ -128,6 +132,10 @@ install-classic: ## Create virtualenv and install Plone build-classic: ## Build classic $(MAKE) -C "./classic/" build-dev +.PHONY: export-distribution +export-distribution-classic: ## Export content + $(MAKE) -C "./classic/" export-distribution + .PHONY: create-site-classic create-site-classic: ## Create a Plone site with default content $(MAKE) -C "./classic/" create-site diff --git a/README.md b/README.md index a54615c..dd8557b 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ The demo-sites use https://github.com/plone/plone.distribution to create and man To update/extend the content run the site locally and make the changes you wish to see. -Use http://localhost:8080/Plone/@@dist_export_all to export the data. +Use `make export-distribution` and `make export-distribution-classic` to export the data to the distribution. Test your changes by creating a fresh site: diff --git a/backend/Makefile b/backend/Makefile index ba71f95..99067e8 100644 --- a/backend/Makefile +++ b/backend/Makefile @@ -158,6 +158,10 @@ test: ## run tests test_quiet: ## run tests removing deprecation warnings PYTHONWARNINGS=ignore ./bin/zope-testrunner --auto-color --auto-progress --test-path src/plone6demo/src/ +.PHONY: export-distribution +export-distribution: ## Export content + bin/export-distribution instance/etc/zope.conf Plone + .PHONY: create-site create-site: ## Create a new site using default distribution and default answers DEVELOP_DISTRIBUTIONS=$(DISTRIBUTIONS) ALLOWED_DISTRIBUTIONS=$(DISTRIBUTIONS) PYTHONWARNINGS=ignore ./bin/zconsole run instance/etc/zope.conf scripts/create_site.py diff --git a/classic/Makefile b/classic/Makefile index 1b3df2e..427e171 100644 --- a/classic/Makefile +++ b/classic/Makefile @@ -153,6 +153,10 @@ test: ## run tests test_quiet: ## run tests removing deprecation warnings PYTHONWARNINGS=ignore ./bin/zope-testrunner --auto-color --auto-progress --test-path src/plonedemo.site/src/ +.PHONY: export-distribution +export-distribution: ## Export content + bin/export-distribution instance/etc/zope.conf Plone + .PHONY: create-site create-site: ## Create a new site using default distribution and default answers DEVELOP_DISTRIBUTIONS=$(DISTRIBUTIONS) ALLOWED_DISTRIBUTIONS=$(DISTRIBUTIONS) PYTHONWARNINGS=ignore ./bin/zconsole run instance/etc/zope.conf scripts/create_site.py