incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Kwiatkowski (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-33149) Create webservice that returns the preferred mirror url given a path to an Apache project release
Date Mon, 13 Aug 2012 12:10:38 GMT

    [ https://issues.apache.org/jira/browse/FLEX-33149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433090#comment-13433090
] 

Nick Kwiatkowski commented on FLEX-33149:
-----------------------------------------

Steps that we had to follow to get this working (besides behind the scenes work to fix our
webspace that Infrastructure helped with):

1. Created new .cgi file with the following contents : 

#!/bin/sh 
# Wrapper around the standard mirrors.cgi script 
exec /www/www.apache.org/dyn/mirrors/mirrors.cgi $* 

2.  Created a new .chtml file with the [preferred] tag.  [preferred] will be replaced with
the site mirror base URL.   Make sure the .chtml file is named the same as the .cgi

3.  Update the .htacces (or create one), to make sure to include ExecCGI permissions in that
directory.  

4.  Update the SVN properties of the .cgi file to include :
     svn:eol-style = native
     svn:executable = *

5.  Commit to SVN.  CGI script will not have execute permissions on the staging server.

6.  Commit to production via the CMS.  Make sure to to a refresh on the CMS before refreshing.
 You should see the CGI and the CHTML in the DIFF.
                
> Create webservice that returns the preferred mirror url given a path to an Apache project
release
> -------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-33149
>                 URL: https://issues.apache.org/jira/browse/FLEX-33149
>             Project: Apache Flex
>          Issue Type: Sub-task
>            Reporter: OmPrakash Muppirala
>            Assignee: Bertrand Delacretaz
>            Priority: Critical
>
> Erik de Bruin's proposal:
> 1. Create 'single-mirror-url.cgi' in the root of the site (i.e. http://incubator.apache.org/flex/single-mirror-url.cgi)
with these three lines:
>     
> #!/bin/sh
> # Wrapper around the standard mirrors.cgi script
> exec /www/www.apache.org/dyn/mirrors/mirrors.cgi $*
> 2. Create 'single-mirror-url.html' (.mdtext?) next to the .cgi from step 1., with only
this line:
>     
> [preferred]
>     
> 3. Set CGI script permissions to executable:
>     
> % chmod a+x single-mirror-url.cgi
> 4. In 'ApacheFlexConfig.xml', change the 'path' attribute of the 'ApacheFlexSDK' node
to "/incubator/flex/4.8.0-incubating/binaries/" and the 'file' attribute to "apache-flex-sdk-4.8.0-incubating-bin.zip".
Note: the application (when patched) will take care of the addition of the mirror domain to
complete the URL.
> 5. Apply patches to InstallApacheFlex source:
> InstallApacheFlex.txt for InstallApacheFlex.mxml
> ViewResourceConstants.txt for ViewResourceConstants.as
> RuntimeLocale.txt for RuntimeLocale.as
> HTH and that I understood the rules and regulations for patching, commenting etc. correctly
(if not, please tell me and I'll behave better next time). 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message