Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

o set executable bits on three scripts in bin: cda, wrapper, and deploy
o set the location of the Java binary in bin/wrapper.conf:
wrapper.java.command=/usr/local/jdk1.5.0_11/bin/java
o configured the agent (aka listener) by modifying etc/cda.xml:

Code Block
titlecda.xml
borderStylesolid

<?xml version="1.0" encoding="UTF-8" ?>

...


<agent-config>

...


        <admin bind-address="localhost" bind-port="21008" />

...


        <server bind-address="18.92.0.199" bind-port="21009">

...


                <permit host="18.92.1.223" key="">

...


                        <path location="/root/sturner/contentdeploy" />

...


                </permit>

...


        </server>

...


</agent-config>

This allows connections from 18.92.1.223 (isda-cs2) and allows deployment to /root/sturner/contentdeploy

...

  • created a deployment config file based on the Eyestreet samples under $CDHOME/conf. My file is $CDHOME/ist1-test.xml
Code Block
titleist1-test.xml
borderStylesolid

<?xml version="1.0" standalone="yes"?>
<deployment-config>

    <sources>
        <alfresco-avm-remote-source
                id="alfresco-cs2"
                context-file="source-avm-remote-context.xml"
                repository-path="steveweb:/www/avm_webapps"
                snapshot="-1"
                user="admin"
                password="PASSWORD-GOES-HERE"
                root-path="/ROOT"
        >
        </alfresco-avm-remote-source>
    </sources>

    <targets>
        <filesystem-target
                id="ist1-fs"
                root-path="/root/sturner/contentdeploy">
                <cd-agent-config ip-address="18.92.0.199" port="21009" />
        </filesystem-target>
    </targets>

    <deployments>

        <deployment
                id="alfresco-cs2-to-ist1-fs"
                active="t"
                source-refid="alfresco-cs2"
                target-refid="ist1-fs"
                source-path="/"
                recurse="/"
                target-path="/"
                overwrite="f"
        />

    </deployments>

</deployment-config>

Deploying content

Finally, to deploy content, I issued these command:

...

This copies files from the satging staging sandbox of the "steveweb" web project on isda-cs2 into the file system on isda-ist1 under the directory /root/sturner/contentdeploy.