Is it possible to run a Flex client in IntelliJ internally and have it talk to a separately deployed server instance? The server's a java webapp. This will make developing, especially debugging, much easier. What I'm trying to avoid is having to rebuild and redeploy the webapp to get the updated Flex code in it. I want to just build flex and run it against the server.
The flex client is embedded in an HTML page on the server, so in production the users access the client by going to a web page. We're using GraniteDS if that's important.
Update
I'm managed to cobble something together, but it's ugly.
- I made a copy of our wrapper HTML page and fixed the links to refer to the SWF in target
- I setup the IntelliJ run config to point to that HTML page
- I set the 'Place SWF file in a local-trusted sandbox' to true
- Hardcoded the
{server.name}
,{server.port}
, and{context.root}
values in theservice-config.xml
GraniteDS config file to localhost, etc.
I can mavenize #1, but #3's isn't really a permanent solution. That part is still a problem because I can't check this in. Any improvements or alternative solutions?