[ckan-dev] Backup strategy for CKAN

Ross Jones ross at servercode.co.uk
Thu Apr 10 16:41:47 UTC 2014


No, my mistake, looks like I misunderstood how Paste Deploy works.
There’s probably no reason why the environment.py couldn’t load the appropriate env-vars and fall back on the config settings.  It would though require lots of documenting.

Ross



On 10 Apr 2014, at 17:27, Ross Jones <ross at servercode.co.uk> wrote:

> 
> The old Pylons docs are gone now, replaced by the Pyramid docs, so I’ll have to root out a source for my claims :)  You definitely can’t do X or ‘’ though.
> Perhaps moving to a Django style python config file might be better, then you can do what you like in config ! 
> 
> Ross.
> 
> On 10 Apr 2014, at 17:10, Vitor Baptista <vitor at vitorbaptista.com> wrote:
> 
>> Hi Ross,
>> 
>> Cool! How does that work? Can we do something like
>> 
>> ckan.site_url = CKAN_SITE_URL or http://localhost:5000
>> 
>> ???
>> 
>> Cheers,
>> 
>> 2014-04-10 13:05 GMT-03:00 Ross Jones <ross at servercode.co.uk>:
>> 
>> On 10 Apr 2014, at 17:02, Vitor Baptista <vitor at vitorbaptista.com> wrote:
>>> @rossjones is doing a pull request somewhat related in https://github.com/ckan/ckan/pull/1600. But that's just to be able to set up which .ini file CKAN will use through an environment variable, not the actual contents.
>>> 
>> 
>> Actually I think the pylons config file can also reference environment vars, PGHOST  etc… Not an ideal solution, but a move in the right direction I think as the config file is still needed for non-infrastructure settings.  The PR works (I used it every day), but it isn’t documented yet.
>> 
>> Ross
>> 
>> 
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>> 
>> 
>> 
>> 
>> -- 
>> Vítor Baptista
>> Developer  |  http://vitorbaptista.com | LinkedIn | @vitorbaptista
>> The Open Knowledge Foundation
>> Empowering through Open Knowledge
>> http://okfn.org/  |  @okfn  |  OKF on Facebook  |  Blog  |  Newsletter
>> 
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
> 
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140410/47d7b3d9/attachment-0003.html>


More information about the ckan-dev mailing list