Skip to content

Commit 2297ecb

Browse files
authored
Merge branch '6.0' into chapter-zodb-v2
2 parents 3baa55b + b72d36c commit 2297ecb

File tree

6 files changed

+45
-5
lines changed

6 files changed

+45
-5
lines changed

.github/workflows/build_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
run: |
5555
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
5656
57-
- uses: actions/cache@v3
57+
- uses: actions/cache@v4
5858
name: Setup pnpm cache
5959
with:
6060
path: ${{ env.STORE_PATH }}

.github/workflows/update_submodule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
# Checkout
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
with:
1414
ref: 6.0
1515
submodules: true

docs/classic-ui/static-resources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ It also automatically manages caching of static resources.
1919
If you were to hard-code these resources in templates with `<link>` or `<script>` tags, you would not have these advantages.
2020

2121
```{seealso}
22-
For some additional implementation information, see {ref}`classic-ui-theming-from-scratch-theme-label`.
22+
For some additional implementation information, see {doc}`theming/create-add-on`.
2323
```
2424

2525

docs/install/containers/recipes/index.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,43 @@ RUN <<EOT
118118

119119
After making these changes, build the project container as usual.
120120
It will no longer output the access log, but will continue to output the event log.
121+
122+
123+
## Pack the ZODB
124+
125+
A common maintenance task of a Plone instance is to [pack the ZODB](https://zodb.org/en/stable/reference/zodb.html#ZODB.DB.pack).
126+
Packing removes old revisions of objects.
127+
It is similar to [routine vacuuming in PostgreSQL](https://www.postgresql.org/docs/8.3/routine-vacuuming.html).
128+
129+
The official {doc}`/install/containers/images/backend` container and project containers based on them have a `pack` command to pack the ZODB.
130+
The command will work in standalone mode, ZEO mode, and RelStorage mode but only with PostgreSQL.
131+
132+
Invoke the command in a running container by passing in the appropriate command for the mode.
133+
134+
In standalone mode, ZODB is in a mounted volume, so the command would be similar to the following.
135+
136+
```shell
137+
docker run -v /path/to/your/volume:/data plone/plone-backend pack
138+
```
139+
140+
In ZEO mode, run the command next to your ZEO instance.
141+
142+
```shell
143+
docker run -e ZEO_ADDRESS=zeo:8100 --link zeo plone/plone-backend pack
144+
```
145+
146+
In RelStorage mode, pass the connection DSN.
147+
148+
```shell
149+
docker run -e RELSTORAGE_DSN="dbname='plone' user='plone' host='db' password='password' port='5432'" pack
150+
```
151+
152+
In running containers that use Docker Compose, the command is less complicated.
153+
154+
```shell
155+
docker compose run backend pack
156+
```
157+
158+
The above command assumes that the service that runs the Plone instance is named `backend`.
159+
Otherwise replace `backend` with your container's name.
160+

submodules/volto

Submodule volto updated 65 files

0 commit comments

Comments
 (0)