Shell script for easing transition from 'paster' to 'ckan' #6039
ThrawnCA
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
That looks useful @ThrawnCA! The convention in CKAN is to use |
Beta Was this translation helpful? Give feedback.
1 reply
-
An updated version is at https://github.com/qld-gov-au/ckan-ex-qgov/blob/develop/.docker/scripts/ckan_cli to handle some differences in syntax.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If anyone's interested, we've devised a shell script for making the transition from
paster
easier, at https://github.com/qld-gov-au/opswx-ckan-cookbook/blob/master/files/default/ckan_cliThe intent is that you can place it in your virtualenv
bin
directory and then call it with the same syntax for CKAN 2.8 or 2.9, eg:It checks for the presence of paster or ckan, using whichever one it finds, and handles the argument order for you.
Config file location defaults to
/etc/ckan/default/production.ini
(since that's the old default, and if you're migrating, your config file is probably still there), but can be overridden by setting theCKAN_INI_FILE
environment variable.Beta Was this translation helpful? Give feedback.
All reactions