This package is use to migrate content from a plone site to a smartweb site.
The migration has 3 step :
- Export content from old site with collective.exportimport
- Process the exported data with this package
- Import the data in the new smartweb site, the package affinitic.smartweb must be instal
- Create a environement :
pyenv virtualenv 3.8 affinitic.smartweb.luigi
- Activate the environement :
pyenv activate affinitic.smartweb.luigi
- Link bin folder:
ln -s ~/.pyenv/versions/affinitic.smartweb.luigi/bin ./bin
- Install dependencies:
bin/pip install -r requirements.txt
Put your json in data/project_name/in.
You can pass this section if you export from localhost.
Add a project_name.cfg
at the root. Inside it add this :
[HandleDocument] url_absolute=https://www.project_name.be
Add the original url (the one that appear in exported json file) to be fix during the process In the next extion you will have to add ``LUIGI_CONFIG_PATH=./project_name.cfg``in front of the Makefile command.
Then add a command in Makefile to start. ex:
run-project-name : bin/luigi --module src.main Start --path "./data/project_name" --local-scheduler
make run-project-name
If it must be relauch, delete the out and/or temp folder