- Make sure you have both Alfresco WCM and an FSR (now called File System Deployment Target) installed and working.
- Edit the Deployment Server's deployment/default-target.xml file and add a "postCommit" section linking to a postcommit script (example).
- Create the postcommit script, calling the lftp tool in mirror mode (example).
Wednesday, January 12, 2011
Automatically deploy Alfresco WCM content to an FTP server
In Alfresco WCM, deploying means generating "baked" web content from XML content and templates, into a local FSR directory. Here is how to take this further and also deploy the content to your web server via FTP automatically.
Subscribe to:
Post Comments (Atom)
Thank you !
ReplyDeleteI was not aware of org.alfresco.deployment.ProgramRunnable and almost ended up writing my own custom class.
This comment has been removed by a blog administrator.
ReplyDelete