Skip to content

Example installation Plone 6 with mxmake, mxdev, cookiecutter-zope-instance, pip

Notifications You must be signed in to change notification settings

rohberg/Plone_mxmake_example

Repository files navigation

Backend Plone 6

Installation with pip and mxdev

Create a folder backend with a virtual Python environment. Clone this repo. Install prerequisites and run mxdev.

python -m venv venv
source venv/bin/activate
pip install -U pip wheel mxdev
mxdev -c mx.ini

Install your Plone packages, core and add-ons:

pip install -r requirements-mxdev.txt

Generate your Zope configuration with cookiecutter. This is also necessary after changes of instance.yaml.

cookiecutter -f --no-input --config-file instance.yaml https://github.com/plone/cookiecutter-zope-instance

Run Zope:

runwsgi instance/etc/zope.ini

Voilà, your Plone is up and running on http://localhost:8080.

All commands

python -m venv venv
source venv/bin/activate
pip install -U pip wheel mxdev

mxdev -c mx.ini
pip install -r requirements-mxdev.txt
cookiecutter -f --no-input --config-file instance.yaml https://github.com/plone/cookiecutter-zope-instance
runwsgi instance/etc/zope.ini

Update instance on changes in requirements

source venv/bin/activate
mxdev -c mx.ini
pip install -r requirements-mxdev.txt
cookiecutter -f --no-input --config-file instance.yaml https://github.com/plone/cookiecutter-zope-instance
runwsgi instance/etc/zope.ini

Troubleshooting

"The 'Paste' distribution was not found and is required by the application"

Be sure to activate the Python virtual environment.

source venv/bin/activate
runwsgi instance/etc/zope.ini

Package 'example-contenttype' requires a different Python: 3.9.10 not in '==2.7,>=3.6'

Correct in setup.py of the mentioned add-on:

python_requires=">=3.6",

Common tasks on your backend

docs.plone.org: Common tasks on your backend

About

Example installation Plone 6 with mxmake, mxdev, cookiecutter-zope-instance, pip

Resources

Stars

Watchers

Forks

Packages

No packages published