[ckan-dev] Rebuild Fanstatic Cache
Matt Moyles
matt.moyles at matricresearch.com
Tue Mar 26 22:06:06 UTC 2013
Thanks for the reply. I would never think of wasting the Dev Mailing list's time by not trying to restart apache and doing the usual reset type stuff before sending an email.
It ended up being an issue with not using the right python version. We are using RHEL6 as the distro. on our prod. server and python2.7 was not installed properly. CKAN had been installed with python setup.py install into the python2.6 system wide site-packages directory which is why the resources weren't updating/conflicting.
----- Original Message -----
From: "Toby Dacre" <toby.okfn at gmail.com>
To: "CKAN Development Discussions" <ckan-dev at lists.okfn.org>
Sent: Tuesday, March 26, 2013 12:07:48 PM
Subject: Re: [ckan-dev] Rebuild Fanstatic Cache
On 26 March 2013 15:46, Matt Moyles <matt.moyles at matricresearch.com> wrote:
> Does anyone know how to clear out? or rebuild the fanstatic cache in production env? I added bootstrap-carousel.js to the resource.config for bootstrap but it's not showing up in the fanstatic cache. Although it works on the dev. side installed with 'setup.py develop'.
Have you restarted ckan/apache?
I think that is the only way to currently update the resources
>
> /ckan/ckan/public/base/vendor/resource.config
> ===========================================
> bootstrap =
> bootstrap/js/bootstrap-transition.js
> bootstrap/js/bootstrap-collapse.js
> bootstrap/js/bootstrap-carousel.js <------- ADDED this line (works in dev) bootstrap-coursel.js and bootstrap-carousel.min.js exist in /ckan/ckan/public/base/vendor/bootstrap/js/ and are copied properly when doing a setup.py install
> bootstrap/js/bootstrap-modal.js
> bootstrap/js/bootstrap-alert.js
> bootstrap/js/bootstrap-tab.js
>
>
>
> I've confirmed that after doing a 'setup.py install' on the production server the bootstrap-carousel.js and bootstrap-coursel.min.js (created with paster minify) are copied correctly, but by the date on the fanstatic url being generated it looks like an old version of the cache is being used. I saw in another thead that someone suggested the use of ' paster front-end-build' but I don't have the command available in our current source tree, so I'm assuming it was added recently.
>
> Any help would be appreciated.
>
> Matt
>
> _______________________________________________
> 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
_______________________________________________
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