[ckan-dev] test-core.ini changes
David Read
david.read at hackneyworkshop.com
Thu Apr 18 10:25:58 UTC 2013
Yes, that's pretty rubbish to have the configurations hard-coded in a
checked-in file. No doubt it will be more than just the SOLR config
that devs will need to adjust.
I suggest that it imports a file called dev-test.ini that devs are
instructed to create in the same way as development.ini.
D
On 17 April 2013 17:00, Adrià Mercader <adria.mercader at okfn.org> wrote:
> Hi,
>
> During #517, test-core.ini was updated to not extend development.ini
> any more. I'm sure there were good reasons for that, but that means
> that if you don't have exactly the same setup as expected on
> test-core.ini you will find errors.
>
> Specifically if your Solr url is different from
> http://127.0.0.1:8983/solr (which is quite common, eg if you are using
> tomcat or you have solr configured with multiple cores for different
> ckan versions), then you need to either edit the file, which is a pain
> because it is versioned and it won't let you switch branches if you
> change it, or create yet another file, test-core-custom.ini, with:
>
>
> [server:main]
> use = egg:Paste#http
> host = 0.0.0.0
> port = 5000
>
> [app:main]
> use = config:test-core.ini
>
> ## Solr support
> solr_url = http://127.0.0.1:8983/solr/ckan-schema-2.0
>
>
> It is a bit annoying. Maybe it is not worth fixing, but at least
> should be added to the docs:
> http://docs.ckan.org/en/latest/test.html
>
>
> Adrià
>
> [1] https://github.com/okfn/ckan/pull/517
>
> _______________________________________________
> 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
More information about the ckan-dev
mailing list