[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GMG-Devel] How to specify an alternative data_basedir?

From: Christopher Allan Webber
Subject: Re: [GMG-Devel] How to specify an alternative data_basedir?
Date: Mon, 08 Feb 2016 11:24:24 -0800
User-agent: mu4e 0.9.13; emacs 24.5.1

Mikhail T. writes:

> Hello!
> I'd like the FreeBSD installation of MG to separate code and
> configuration files from data:
>   * Code: where Python installs it (such as
>     $PREFIX/lib/python2.7/site-packages/mediagoblin/)
>   * Configuration: $PREFIX/etc/mediagoblin/
>   * Data: /var/tmp/mediagoblin/ -- to be overwritten by user
> Specifying an alternative data_basedir in
> $PREFIX/etc/mediagoblin/mediagoblin.ini is easy, but the paste.ini still
> refers to %(here)s for various subdirectories. Trying to refer to
> %(data_basedir)s results in an error:
>     ConfigParser.InterpolationMissingOptionError: Error in file
>     /opt/etc/mediagoblin/paste.ini: Bad value substitution:
>             section: [app:mediagoblin]
>             option : /mgoblin_media
>             key    : data_basedir
>             rawval : %(data_basedir)s/user_dev/media/public
> How do I specify the directory in /one/ place -- whether that place is
> in paste.ini or mediagoblin.ini is less important, although the latter
> is, probably, preferable so that if one were to switch from paster to
> celery, the paths would remain.
> Any suggestions? Thanks! Yours,
>     -mi

I don't have an answer at the moment... we really ought to have "one"

Note that for production instances, the paste.ini really doesn't matter,
because the static serving of stuff through there probably is ignored,

There's some question of whether we should stick with Paste or make
uwsgi the default.  If we could launch one of these through
MediaGoblin's own control, we'd likely be able to remove the repetition
of configuration...

reply via email to

[Prev in Thread] Current Thread [Next in Thread]