Blog

Anzeige der Einträge mit Tag 'Config'

Why using code as DI config is a win!

In my recent talk on introducing Disco - the DI container with the damn coolest name(tm) - I talk about why I believe that using XML or any other non-code configuration (YAML, JSON, ...) is not a good idea. This stirred some twitter discussion recently which led to this blog post.


mehr lesen...


Eintrag von Stephan Hochdörfer am 24.07.2017

Environment Dependent Sencha Touch Config

Recently we developed a mobile application based on Sencha Touch and Cordova. The application was communicating with a REST backend. Since I did not want to change the URL to the REST backend manually when deploying the app in the testing or production environment, I was looking for a way to use multiple configuration files based on the active environment.
I was not able to find a decent solution in the Sencha documentation so I tried and contacted the Sencha Support. Kevin from the Sencha Support Team quickly responded with a pretty decent solution:
As it turns out there exists an undocumented feature for Sencha Touch allowing you to define Javascript files which will get included on a per-environment basis during the build. Simply add the following lines to your app.json:


mehr lesen...


Eintrag von Stephan Hochdörfer am 16.03.2015

Diese Webseite verwendet Cookies, um die Bedienfreundlichkeit zu erhöhen. Mit der Nutzung unserer Webseite wird das Einverständnis erklärt, dass wir Cookies verwenden. Weitere Informationen.