Skip to content

Commit

Permalink
correct venv creation, never mix venv and other configation files
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTango committed Nov 6, 2024
1 parent 5201a2a commit a3d015f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
23 changes: 16 additions & 7 deletions docs/admin-guide/install-buildout.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ For other installation options, see {ref}`get-started-install-label`.
## Prerequisites for installation

- For Plone 6.0, Python {SUPPORTED_PYTHON_VERSIONS_PLONE60}
% TODO: These instructions install Plone 6.0.x. Uncomment next line and change the subsequent include when Plone 6.1 is released and "latest".
% TODO: These instructions install Plone 6.0.x. Uncomment next line and change the subsequent include when Plone 6.1 is released and "latest".
% - For Plone 6.1, Python {SUPPORTED_PYTHON_VERSIONS_PLONE61}


Expand All @@ -47,15 +47,17 @@ cd <my_projects>/plone
Create a Python virtual environment.

```shell
python3 -m venv .
python3 -m venv venv
```

Install the minimal Python packages needed in order to run Buildout.

```shell
bin/pip install -r https://dist.plone.org/release/6-latest/requirements.txt
./venv/bin/pip install -r https://dist.plone.org/release/6-latest/requirements.txt
```



Create a {file}`buildout.cfg` file in your directory with the following contents.

```cfg
Expand All @@ -75,21 +77,28 @@ eggs =
Plone
```

Install Buildout script in bin directory.

```shell
./venv/bin/buildout bootstrap
```

Run Buildout.

```shell
bin/buildout
./bin/buildout
```

This may take a few minutes.

When ever the buildout configuration has changed, re-run ./bin/buildout

## Start Plone in foreground mode

Start the instance for a quick test in foreground mode:

```shell
bin/instance fg
./bin/instance fg
```

```{include} /_inc/_create-classic-ui-instance.md
Expand All @@ -101,7 +110,7 @@ bin/instance fg
Start the instance.

```shell
bin/instance start
./bin/instance start
```


Expand All @@ -110,5 +119,5 @@ bin/instance start
Stop the instance.

```shell
bin/instance stop
./bin/instance stop
```
6 changes: 3 additions & 3 deletions docs/admin-guide/install-pip.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ For other installation options, see {ref}`get-started-install-label`.
## Prerequisites for installation

- For Plone 6.0, Python {SUPPORTED_PYTHON_VERSIONS_PLONE60}
% TODO: These instructions install Plone 6.0.x. Uncomment next line and change the subsequent include when Plone 6.1 is released and "latest".
% TODO: These instructions install Plone 6.0.x. Uncomment next line and change the subsequent include when Plone 6.1 is released and "latest".
% - For Plone 6.1, Python {SUPPORTED_PYTHON_VERSIONS_PLONE61}


Expand All @@ -47,13 +47,13 @@ cd <my_projects>/plone
Create a Python virtual environment.

```shell
python3 -m venv .
python3 -m venv venv
```

Install Plone and a helper package, {term}`pipx`.

```shell
bin/pip install -c https://dist.plone.org/release/6.0-latest/constraints.txt Plone pipx
./venv/bin/pip install -c https://dist.plone.org/release/6.0-latest/constraints.txt Plone pipx
```


Expand Down
2 changes: 1 addition & 1 deletion docs/admin-guide/run-plone.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ There are different commands to run Plone, depending on which method you used to
## Run Plone in foreground mode

Running Plone in foreground mode will show output in the terminal.
This is recommended while developing a Plone site.
This is recommended while developing a Plone site. The command to be used, depends on the used install method.

Cookieplone:
: ```shell
Expand Down

0 comments on commit a3d015f

Please sign in to comment.