Giter VIP home page Giter VIP logo

plone-classicui-pdm-installer's Introduction

Install Plone 6 classic UI with PDM

checkout this repository like this:

git clone https://github.com/collective/plone-classicui-pdm-installer.git plone6classicui
cd plone6classicui

creating a venv:

python3.11 -m venv venv

installing PDM with pip:

./venv/bin/pip install pdm

add needed Plone Add-on's in the pyproject.toml:

dependencies = [
    "Products.CMFPlone>=6.0.4",
    "plone.app.caching",
    "plone.app.iterate",
    "plone.app.upgrade",
    "Products.CMFPlacefulWorkflow",
    ### only needed when using relstorage
    "relstorage",
    "psycopg2",
    ###
    "collective.easyform",
    "plone.gallery",
    "collective.collectionfilter",
]

Install Plone and all dependencies:

./venv/bin/pdm install

Create a Zope instance:

./venv/bin/pdm run create_instance

Adjust the instance port in instance1/etc/zope.ini

[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = 8080

Alternatively you can also create a RelStorage setup like this:

./venv/bin/pdm run create_relstorage_instance

Adjust the data base connection string in instance1/etc/zope.conf:

<zodb_db main>
    <relstorage>
      blob-dir $INSTANCE/var/blobstorage
      <postgresql>
        dsn dbname='my_plone_database' user='my_plone_db_user' host='localhost' password='SECRET'
      </postgresql>
    </relstorage>
   mount-point /
</zodb_db>

Start the instance

./venv/bin/pdm run start_instance

In production you want to add this to something like supervisor or a systemd script.

plone-classicui-pdm-installer's People

Contributors

me-kell avatar mrtango avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.