[ALOY-601] Use env variables from config.json for distributed builds

GitHub Issuen/a
TypeNew Feature
Resolution Date2013-04-05T12:10:43.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 07
Labelsalloy, alloy-cli, cli
ReporterPedro Enrique
AssigneeTony Lukasavage


When building an app for distribution purposes (in my case, ad-hoc distribution of an iPhone app to send to beta testers), I would like the build to use development or test environment variables (env:development, env:test) set in config.json instead of production variables (env:production). This would allow me to create a build that points to development backend services and test data and would be perfect for testing purposes. It would avoid the pitfalls of manually changing paths, datasources, etc before build and changing them back when ready for production. Perhaps this feature could exist as a flag or a setting in build config. original discussion here: http://developer.appcelerator.com/question/149729/deploy-ios-ad-hoc-using-dev-environment-variables-in-configjson#answer-258914


  1. Tony Lukasavage 2013-04-05 You'll have to do this from the command line, as there's no option for it in TiStudio, but you can define an explicit "deploytype" for your alloy compile process. For example, if I want to compile alloy for ios and a "development" environment regardless of what the CLI thinks, I would do this:
       alloy compile --config platform=ios,deploytype=development
    Notice that there's no space between the comma, it's all one string after --config

JSON Source