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

Vitor Baptista vitor at vitorbaptista.com
Thu Oct 31 16:09:01 UTC 2013


Thanks for the tip, very useful :)


2013/10/28 Adrià Mercader <adria.mercader at okfn.org>

> 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:5000again.
>
>
> Hope this helps,
>
> Adrià
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>



-- 

Vítor Baptista

Developer  |  http://vitorbaptista.com |
LinkedIn<http://www.linkedin.com/in/vitorbaptista>|
@vitorbaptista <http://twitter.com/vitorbaptista>

The Open Knowledge Foundation <http://okfn.org>

*Empowering through Open Knowledge*

http://okfn.org/  |  @okfn <http://twitter.com/okfn>  |  OKF on
Facebook<https://www.facebook.com/OKFNetwork> |
Blog <http://blog.okfn.org/>  |  Newsletter<http://okfn.org/about/newsletter/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20131031/739d1487/attachment-0001.html>


More information about the ckan-dev mailing list