Skip to content

Commit

Permalink
Update README: export content to distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuess committed Sep 7, 2024
1 parent ae21500 commit 7af8dcc
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
4 changes: 4 additions & 0 deletions backend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions classic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7af8dcc

Please sign in to comment.