ProximoSrl / Jarvis.ConfigurationService

Configuration as a Service
Apache License 2.0
4 stars 2 forks source link

Enable app folder redirection #4

Closed andreabalducci closed 10 years ago

andreabalducci commented 10 years ago

App configuration could be stored outside the configuration root (es: different repo), we can add a appname.redirect file

root
     App
        Default
             module1.config
     App2.redirect -> path/to/app2/sources/assets/config
     App3.redirect -> path/to/app3/repository/config
alkampfergit commented 10 years ago

Sounds reasonable, an appx.config could contain a valid path (Even network share) where configuration file are stored.

alkampfergit commented 10 years ago

Actually implemented solution works substituting content of redirect file, if you ask for root/App/Default/App2 folder and a App2.redirect is present, it substitute with thenew path

Ex:

root App Default module1.config App2.redirect -> path/to/app2/sources/assets/config/App2 App3.redirect -> path/to/app3/repository/config/App3