Develop and deploy server side independently from client side [Ionic + Meteor]

To extend a bit more on this topic what i have done is to have a file called ddp-url.js that look like this :

__meteor_runtime_config__ = {};
// @if IONIC_ENV == 'development'
__meteor_runtime_config__.DDP_DEFAULT_CONNECTION_URL = 'localhost:3000';
// @endif
// @if IONIC_ENV == 'mobile'
__meteor_runtime_config__.DDP_DEFAULT_CONNECTION_URL = 'my.computer.ip:3000';
// @endif
// @if IONIC_ENV == 'production'
__meteor_runtime_config__.DDP_DEFAULT_CONNECTION_URL = 'api.example.com'; 
// @endif

Then I use preprocess and set a gulp task.

Hence i only have to set IONIC_ENV variable and call gulp to have my ionic app to work in differents envs.