[ckan-dev] Pins not showing up in data explorer in CKAN 2.0 in production

Sean Hammond sean.hammond at okfn.org
Thu Nov 1 15:24:40 UTC 2012


> Hey, I've made a ticket for this issue (because I couldn't find an
> existing one, hopefully I didn't make a duplicate ticket):
> 
> http://trac.ckan.org/ticket/3010
> 
> This is currently affecting our *.ckanhosted.com sites.
> 
> When previewing a resource with geolocation data and looking at the map
> view, the pin images for points on the map don't appear when minified
> files are in use (i.e. when debug = false in your ini file).
> 
> You wouldn't want to turn on debug for a production site but you can
> hack the source code to make it serve unminified files in production
> mode and apparently this is what we've done to get around this issue on
> demo.ckan.org.
> 
> (Thanks to Adria and Dominik for explaining this.)
> 
> I haven't enabled this same hack for ckanhosted.com yet but I guess we
> even need to do so or fix this bug soon because people are going to want
> to see pins.

Just to update on this, I've made a branch containing the temporary
workaround from demo.ckan.org:

https://github.com/okfn/ckan/compare/DO_NOT_MERGE_3010-serve-unminified-files-in-production-hack

So we can deploy off this branch instead of modifying the code right on
the server. My idea is that this branch will never get merged into
master but we can periodically merge master into this branch for as long
as we want to keep using it.

This branch is deployed on s082 now so the map pins are working for
ckanhosted.com sites. I didn't touch demo.ckan.org which has various
modifications directly on the server.




More information about the ckan-dev mailing list