jeudi 8 mai 2014

Overriding forced "string" format for a config variable? I want a variable reference

I've noticed that one of the most frustrating parts of using Architect is that many config variables force me to use a "string". I know some have the ability to be changed by clicking the button to the left of the config variable, but many do not.

For example, we have three environments. Dev, QA, and Live (fairly standard). The URL paths for the respective stores are different for each environment.


Not using Architect it's very trivial to define a global variable for a url like so: App.globals.url = http://someurl


In my store, I can then just have the url config value reference: App.globals.url so then I only have to change that one variable before deploying to each environment, and it would affect all stores in one shot.


In Architect it won't allow that because it forces that config variable to be a "string", so instead of just showing up as:


url: App.globals.url


It shows up as:


url: 'App.globals.url' which of course it thinks is a literal URL vs a reference to my variable.


I'd really love it if every config variable that Architect knows about had an ability to override and just put exactly what I want after the parameter so that I could reference a variable and not have it translate it as a literal string.


Is there a way to achieve what I want in Architect today? Is this going to be a future feature?





Aucun commentaire:

Enregistrer un commentaire