Laurence,

Thanks a lot for the prompt reply, suggestions and wishes.

1. In my Flex source code, I have in various files

<mx:RemoteObject id="myServices" 
        destination="ColdFusion"
        source="famous.connectors.mycfcfile"
        showBusyCursor="true"
        fault="Alert.show(event.fault.faultString, 'Error')">


Do I need to change the destination to SecureColdFusion in above code or if I 
make the changes I mentioned in remoting-config.xml it will be sufficient? 
Sorry, if my question is naive. 


2. Yes, I understand users have to use https://myprogram.com rather than doing 
http://myprogram.com which I am doing on my development box. Is that what you 
meant?

4. How do I create a secure server-cert so that I can use it on the development 
machine? I looked at http://msdn.microsoft.com/en-us/library/ms751408.aspx and 
but don't have Visual Studio installed so don't have the makecert.exe. I am 
using IIS 5.1 on a Win XP Professional OS. 


5. My FlexBuilder presently in Project Properties has Flex Compiler, Root URL 
as 
http://127.0.0.1/myprogram. After the secure cert is installed, I have to 
change 
it to https://127.0.0.1/famous/ or would any other changes be required in the 
Flex Builder, Project Properties?  


Can you please advise?

Thanks a lot.



________________________________
From: Laurence MacNeill <[email protected]>
To: [email protected]
Sent: Wed, September 15, 2010 9:05:41 PM
Subject: Re: [AFFUG Discuss] newbie question: creating a release build and 
moving files to production


Your Flex source-code may need to be changed as well -- all your RemoteObjects 
may need to have their Destination set to SecureColdFusion (or whatever 
desination-name you give to your secure CF channel...)  Unless you've set all 
your destinations to the default channel, then your changes to the XML files 
above should work, I would think...  Of course, that changes the default 
destination for EVERYTHING using CF on that server...
 
And, don't forget to load your program using the https:// protocol -- secure CF 
channels don't work unless you've loaded the program with https:
 
Third:  When you export a release-build, you specify a folder-name where you 
want it to go.  Just copy that entire folder to the production server -- 
it should contain any of the external files you're referencing in your 
directory 
structure.
 
Fourth -- you may want to think about securing your development server, if 
you're going to be running your program in secure-mode on the production 
server.  It's kind of a pain, but it can be done with a server-cert that you 
create yourself.  Just add that cert to the trusted certs in the browser you're 
using to test the program on the development server, and it should work just 
fine -- at least, it does on my machine.  Just make FlexBuilder look for your 
program with an https: address, not the default http: address...
 
I'm sure others will have more tips for you -- this is just off the top of my 
head what I can remember when I first did a release-build for my Flex project...
 
Good luck!
L.


On Wed, Sep 15, 2010 at 8:53 PM, Chris H <[email protected]> wrote:

I believe I need to choose the Export option in the Flex 3 builder, choose the 
Release Build so that I can get the compact binaries which can be uploaded on 
the server. 

>
>1. What else might be needed to be moved other than the files in html-template 
>folder(containing AC_OETags.js and the history folder), assets(containing 
>images 
>and the external css file),  and the files in flex folder which are 
>data-management-config.xml, messaging-config.xml, proxy-config.xml, 
>remoting-config.xml, services-config.xml? Would doing an Export of the Release 
>Build include the required files(html-template folder, assets folder, flex 
>folder?
>
>2. The application is running on a regular http protocol on the development 
>machine, but it needs to run on a secure https protocol on the production box. 
>
>
>Currently, in the services-config.xml file I have 
>
><!--  CF Based Endpoints -->
>        <channel-definition id="my-cfamf" 
>class="mx.messaging.channels.AMFChannel">
>            
>            <properties>
>        .<polling-enabled>false</polling-enabled>
>                <serialization>
>                    <instantiate-types>false</instantiate-types>
>                </serialization>
>            </properties>
>        </channel-definition>
>
>
>
><channel-definition id="my-cfamf-secure" 
>class="mx.messaging.channels.SecureAMFChannel">
>            
>            <properties>
>                <polling-enabled>false</polling-enabled>
>                <add-no-cache-headers>false</add-no-cache-headers>
>                <serialization>
>                    <instantiate-types>false</instantiate-types>
>                </serialization>
>            </properties>
>        </channel-definition>
>.
>.
>.
>
>and in remoting-config.xml there is
>
> <default-channels>
>        <channel ref="my-cfamf"/>
>    </default-channels>
>
>    <destination id="ColdFusion">
>        <channels>
>            <channel ref="my-cfamf"/>
>        </channels>
>
>I guess I need to change the <channel ref="my-cfamf"/> in remoting-config.xml 
>to 
><channel ref="my-cfamf-secure"/> in default channels and destination id. 
>
>
>2. Will any other changes be needed in any of the config.xml files?
>
>I know it is hard to comment/advise without looking at the entire application, 
>but I have not done this before so need  some suggestions. 
>
>
>
>
>
>
>------------------------------------------------------------- 
>To unsubscribe from this list, simply email the list with unsubscribe in the 
>subject line 
>
>
>For more info, see http://www.affug.com/ 
>Archive @ http://www.mail-archive.com/discussion%40affug.com/ 
>List hosted by FusionLink 
>------------------------------------------------------------- 



      


-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------

Reply via email to