[ckan-dev] Tip: Developing or Debugging CKAN on a non-root location

Adrià Mercader adria.mercader at okfn.org
Mon Oct 28 17:54:41 UTC 2013


Hi all,

A very common use case is that users will install CKAN in a non root
location (eg http://someserver/data or http://someserver/ckan). This
sometimes brings up specific issues that can be hard to debug on a
root deployment.

You can configure your local paster server to serve CKAN on a custom
URL by tweaking the top sections of your development.ini file. For
instance, to serve your local development instance on
http://localhost:5000/data, add the following lines to your ini file:

[composite:nonroot]
use = egg:Paste#urlmap
/data = main

And then serve the app adding this extra option to the usual serve command:

paster serve --reload -n nonroot development.ini

Dropping the option would serve CKAN at the usual http://localhost:5000 again.


Hope this helps,

Adrià




More information about the ckan-dev mailing list