Hi all,
I have two .ini files for my app a developmemt.ini and a local.ini which
overrides some settings in the dev config to use resources local to my machine.
The relevant parts of my app config files are
--- development.ini
[pipeline:main]
pipeline = rev-proxy-prefix
some-other-filter
mainapp
[filter:rev-proxy-prefix]
use = egg:PasteDeploy#prefix
prefix = /race
[filter:some-other-filter]
use = egg:race#some_entry_point
config_value = true
[app:mainapp]
use = egg:race
full_stack = true
cache_dir = %(here)s/data
beaker.session.key = rase
beaker.session.secret = somesecret
db.host = dbhost01.example.com
db.port = 5072
--- local.ini
[pipeline:main]
pipeline = rev-proxy-prefix
some-other-filter
mainapp
[filter:rev-proxy-prefix]
use = egg:PasteDeploy#prefix
prefix = /race
[filter:some-other-filter]
use = egg:race#some_entry_point
config_value = true
[app:mainapp]
use = config:development.ini#mainapp
db.host = localhost
This gives me what I want, my local mainapp overrides the development mainapps
db.host config. However, the local file is pretty verbose and I have to
manually
keep the pipeline and filter sections in sync with the development file.
Cumbersome and error prone. In an ideal world I'd like my local.ini to be
[pipeline:main]
pipeline = config:development.ini
[app:mainapp]
use = config:development.ini#mainapp
db.host = localhost
I've tried this syntax with no luck. Paste simply uses the entire config from
development.ini. Maybe I'm missing something. Is this at all possible with
paste
deploy? If I can't get the pipeline config from the development file, is it
possible to reference filters in other config files?
Thanks,
- Shailesh
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---