cancel
Showing results for 
Search instead for 
Did you mean: 

Auto-deploy not working with File System Deployment Target

pyppe
Champ in-the-making
Champ in-the-making
Hi.

We cannot get the auto-deployment to work with our File System Deployment Target. We are using the following filesystem-deployment target:


  <bean
    class="org.alfresco.deployment.impl.server.DeploymentTargetRegistrationBean"
    init-method="register">

    <property name="name">
      <value>vnkpFilesystem</value>
    </property>
    <property name="registry">
      <ref bean="deploymentReceiverEngine" />
    </property>

    <property name="target">
      <bean
        class="org.alfresco.deployment.impl.fsr.FileSystemDeploymentTarget"
        init-method="init">
        <property name="rootDirectory">
          <value>${deployment.filesystem.default.rootdir}</value>
        </property>

        <!–  where to store meta data –>
        <property name="metaDataDirectory">
          <value>${deployment.filesystem.default.metadatadir}</value>
        </property>

        <property name="autoFix">
          <value>${deployment.filesystem.autofix}</value>
        </property>
        <property name="fileSystemReceiverService">
          <ref bean="fileSystemReceiverService" />
        </property>

        <!–  how to authenticate for this particular target –>
        <property name="authenticator">
          <bean
            class="org.alfresco.repo.deploy.DeploymentReceiverAuthenticatorAuthenticationService"
            init-method="init">
            <property name="authenticationService">
              <ref bean="AuthenticationService" />
            </property>
          </bean>
        </property>

        <!– Target Event Handlers –>
        <property name="postCommit">
          <list>
            <bean class="fi.vn.kp.alfresco.deployment.PostDeploymentRunnable">
              <property name="command">
                <value>${vnkp.post-deployment.command}</value>
              </property>
              <property name="directory">
                <value>${vnkp.post-deployment.directory}</value>
              </property>
            </bean>
          </list>
        </property>
      </bean>
    </property>
  </bean>

The web-project has been configured to use the above-mentioned Live Server for deployments. And manually deploying works OK.

However, when you select some file and submit it to staging sandbox through a workflow (and select the auto-deploy), nothing happens. Why is that? How do you enable the auto-deployment?

- Pyppe
1 REPLY 1

pyppe
Champ in-the-making
Champ in-the-making
I debugged class AVMDeloyHandler and noticed that it gets executed and autoDeploy=true, but findDeployToServers-method returns an empty set, so nothing gets deployed.

How do I add a live server? Apparently the following is not enough (which I have done):
* Edit Web Project
* Add Deployment Receiver
** Transport Name: default
** Host: localhost
** Port: 50500
** URL: –
** Type: Live Server
** Username: admin
** Source Path: /ROOT
** Excludes: –
** Target Name: vnkpFilesystem (target is org.alfresco.deployment.impl.fsr.FileSystemDeploymentTarget)
** Include In Auto Deploy: Yes

As I said in my previous post, the manual deploying works with this configuration. Why doesn't auto-deploy?