deployment file configuration change from 3.0 to 3.2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2009 12:23 PM
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
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
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
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2009 12:28 PM
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.
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.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2009 12:56 PM
Ok, thanks.
I saw into the readme.txt and got
just, I don't understand the pattern.
Do I have to duplicate the:
section for my N targets and customize the properties?
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2009 05:49 PM
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.
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.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2009 06:18 AM
Ok, works great!
thanks
Daniele

thanks
Daniele
