News

My campaign to produce Shakespeare's Sonnets: A Graphic Novel Adaptation needs your help! Please sign up at https://www.patreon.com/fisherking for access to exclusive content and the opportunity to be a part of the magic!

I'm also producing a podcast discussing the sonnets, available on
industrial curiosity, itunes, spotify, stitcher, tunein and youtube!
For those who prefer reading to listening, the first 25 sonnets have been compiled into a book that is available now on Amazon and the Google Play store.

Tuesday, July 20, 2010

flex builder / web server debug configuration

keywords: flex builder, web server, apache, php, debug, build, output, test, configuration

seriously - does it have to be so hard to find this stuff out? and get the whole story? surprisingly, when a flex application's project files are saved to a code depository (SVN) the developer's flex / web server configuration is saved with it, and therefore propagates to any other developer working with the same stream.

and every computer is different.

for reasons unknown, the flex builder interface does not allow modification of the build output directory, nor of the web server settings. oh, it CLAIMS to allow it, but clicking "OK" returns an error. it could be that this is specific to SVNs that keep their files marked "read only" even when checked out, but i doubt it.
[i only have one to test with, so let me know if i'm wrong - i'm using tortoiseSVN. and i don't think the files are read-only, but i don't trust windows to tell me either way]

so:

1. .project
the <location> tag must define the project's source directory

2. .flexProperties
serverRoot, serverRootURL need to point to the location of the webserver eg.
serverRoot="C:/xampp/htdocs/xampp/ProjectName" serverRootURL="http://localhost/xampp/ProjectName/"

3. .actionScriptProperties
outputFolderLocation, outputFolderPath build directories need to point to the web server directory eg.
outputFolderLocation="C:/xampp/htdocs/xampp/ProjectName/tester-debug" outputFolderPath="bin-debug"

"hey presto! pots and pans." you're done. it's that simple.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.