Deploying my flex application
Posted
by Vatsala
on Stack Overflow
See other posts from Stack Overflow
or by Vatsala
Published on 2010-04-17T14:10:44Z
Indexed on
2010/06/15
7:02 UTC
Read the original article
Hit count: 275
Hi, I am doing some trial testing awith Amazon ec2 boxes, deploying flex apps running on top of restlet powered webservices. I have this problem - Everytime i deploy the app to the cloud, I'm having to hardcode the IP address of the server into the ActionScript/MXML files (http://72.93.48.39:8080/xxx/abc/) and for certain reasons, i am forced to choose a different IP everytime. and i think its really not the right way to deploy the application.
I would like to know what other people do in such scenarios?
On thinking about it, i thought i could make it pickup values from the HTMLVars of the HTML wrapper. but that again has to be edited everytime again and again.
will it be possible to be able to supply these values : server's ip address, server's port number(in case its not 8080 on some machine) at build time? if so can anyone give me a barbones sample build.xml just as an example?
© Stack Overflow or respective owner