commands
$ paster <ckan commands>
-
enabling ckan commands
$ paster --plugin=ckan <ckan commands>
-
pointing to ckan config
$ paster --plugin=ckan <ckan commands> --config=<config file> # e.g. $ paster --plugin=ckan db init std.ini
-
virtual environments
$ conda create -n ckan2.5 ipython $ activate ckan2.5 [ckan2.5]$ paster --plugin=ckan db init std.ini
-
running paster on a deployment
$ sudo -u www-data /var/lib/ckan/std/pyenv/bin/paster --plugin=ckan db init std.ini
-
getting help on paster
$ paster --plugin=ckan --help $ paster --plugin=ckan --help db
-
paster executable
# activating the virtual environments $ . pyenv/bin/activate # or $ pyenv/bin/paster ...
-
position of paster parameters
# --plugin is a parameter to paster # so needs to come before ckan commands # default value for --plugin is setup.py in the current directory # you don't need to specify the plugin parameter # default value for --config is development.ini $ paster --plugin=ckan db --config=development.ini init $ paster --plugin=ckan db init --config=development.ini
-
running a paster shell
# useful for development $ paster --plugin=pylons shell $ sudo -u www-data paster --plugin=pylons shell std.ini
-
-
db manage databases
- initialisation