cancel
Showing results for 
Search instead for 
Did you mean: 

deployment file configuration change from 3.0 to 3.2

d_montagni
Champ in-the-making
Champ in-the-making
Hi all,

I've just installed the WCM deployment module of 3.2 community and I've found that configuration files and also java classes are changed from 3.0 version.

For instance, I have this configuration on application-context.xml of 3.0

    
<bean id="configuration" class="org.alfresco.deployment.config.Configuration"
          init-method="init">
        <property name="dataDirectory">
            <value>${dep.datadir}</value>
        </property>
        <property name="logDirectory">
            <value>${dep.logdir}</value>
        </property>
        <property name="metaDataDirectory">
            <value>${dep.metadatadir}</value>
        </property>
       
        <!– Target Configuration. Modify for your site. –>
        <property name="targetData">
            <map>
               <entry key="MYWEBSITE">
                   <map>
                      <entry key="root"><value>/appdeploy/MYWEBSITE</value></entry>
                      <entry key="user"><value>admin</value></entry>
                      <entry key="password"><value>admin</value></entry>
                      <entry key="autoFix"><value>true</value></entry>      
                   </map>
               </entry>


and also the related class org.alfresco.deployment.config.Configuration

that are no longer present on 3.2

how can I map the configuration from 3.0 to 3.2?

thanks for any suggestion
Daniele
4 REPLIES 4

mrogers
Star Contributor
Star Contributor
Start by looking here.   http://wiki.alfresco.com/wiki/WCM_Deployment_Engine

You will want to create a "file system deployment target".

If you only have one of these then you just change the values in deployment.properties.   If you have multiple then there's a sample provided to get you started.

d_montagni
Champ in-the-making
Champ in-the-making
Ok, thanks.

I saw into the readme.txt and got

To define more targets follow the pattern of default-target.xml.    There are two steps involved a) definition of your target and
   b) registration of your target with the deployment engine.

just, I don't understand the pattern.

Do I have to duplicate the:
   
<bean class="org.alfresco.deployment.impl.server.DeploymentTargetRegistrationBean"
      init-method="register">

</bean>


section for my N targets and customize the properties?

thanks

mrogers
Star Contributor
Star Contributor
The example on the wiki gives an example of defining a target with the name "sampleTarget".     

So you want a target called MYWEBSITE.

Copy that sample-target.xml  to a file called MYWEBSITE-target.xml and put it into deployment/targets folder (alongside default-target.xml).

Change the name property to "MYWEBSITE".   
Change the rootDirectory to "/appdeploy/MYWEBSITE"
Change autoFix to true or leave as is.
Change user to "admin".
Change password to "admin".
Change metaDataDirectory to wherever you stored your data in the old version.

Remove postCommit property since you are not using it.

d_montagni
Champ in-the-making
Champ in-the-making
Ok, works great!  Smiley Happy

thanks
Daniele