[ckan-dev] Script configuring production.ini using paster config-tool
Terje Christensen
terje at businessmodel.io
Mon Oct 29 13:37:24 UTC 2018
Hi
I'm setting up a development version of ckan using docker. Adding the extra
extensions I need in the Dockerfile.
this works just fine. But I would also like to add the extensions that is
installed to the config file (production.ini).
I see that there is code that seems to do this. In ckan/lib/cli.py at line
2448 there are a class ConfigToolCommand.
Examples:
paster config-tool default.ini sqlalchemy.url=123
'ckan.site_title=ABC'
How can I use config-tool to set variables?
I have tried
1) log into the docker instance running ckan
docker exec -it ckan /bin/bash
2) run the paster command
/usr/local/bin/ckan-paster config-tool /etc/ckan/production.ini
'ckan.site_title=ABC'
3) result is
Command 'config-tool' not known (you may need to run setup.py egg_info)
Known commands:
create Create the file layout for a Python distribution
exe Run #! executable files
help Display help
make-config Install a package and create a fresh config file/directory
points Show information about entry points
post Run a request for the described application
request Run a request for the described application
serve Serve the described application
setup-app Setup an application, given a config file
Terje
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20181029/22d9fb70/attachment.html>
More information about the ckan-dev
mailing list