Created
April 24, 2020 12:11
-
-
Save tisto/26a0ec4d497d77452a96e98a7bd8be05 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create virtual Python 3 environment: | |
``` | |
python3 -m venv . | |
``` | |
Create a requirements.txt file: | |
``` | |
# Keep this file in sync with: https://github.com/kitconcept/buildout/edit/master/requirements.txt | |
setuptools==42.0.2 | |
zc.buildout==2.13.2 | |
``` | |
Install Python dependencies: | |
``` | |
bin/pip install -r requirements.txt | |
``` | |
Create buildout.cfg: | |
``` | |
[buildout] | |
index = https://pypi.org/simple | |
extends = http://dist.plone.org/release/5.2.1/versions.cfg | |
find-links += http://dist.plone.org/thirdparty/ | |
versions=versions | |
parts = | |
instance | |
solr | |
[instance] | |
recipe = plone.recipe.zope2instance | |
user = admin:admin | |
http-address = 8080 | |
eggs = | |
Plone | |
Pillow | |
collective.solr | |
[solr] | |
recipe = kitconcept.recipe.solr | |
src = http://archive.apache.org/dist/lucene/solr/7.7.2/solr-7.7.2.tgz | |
solr-config = etc/solr | |
``` | |
Download Solr config: | |
``` | |
mkdir -p etc/solr/conf | |
wget https://raw.githubusercontent.com/kitconcept/kitconcept.recipe.solr/master/config/core.properties etc/solr/ | |
wget https://raw.githubusercontent.com/kitconcept/kitconcept.recipe.solr/master/config/conf/mapping-FoldToASCII.txt etc/solr/conf | |
wget https://raw.githubusercontent.com/kitconcept/kitconcept.recipe.solr/master/config/conf/schema.xml etc/solr/conf | |
wget https://raw.githubusercontent.com/kitconcept/kitconcept.recipe.solr/master/config/conf/solrconfig.xml etc/solr/conf | |
wget https://raw.githubusercontent.com/kitconcept/kitconcept.recipe.solr/master/config/conf/stopwords.txt etc/solr/conf | |
wget https://raw.githubusercontent.com/kitconcept/kitconcept.recipe.solr/master/config/conf/synonyms.txt etc/solr | |
``` | |
Run buildout: | |
``` | |
bin/buildout | |
``` | |
Start Plone: | |
``` | |
bin/instance fg | |
``` | |
Start Solr: | |
``` | |
bin/solr-foreground | |
``` | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment