Automate build and deployment of Alfresco
Hi Readers,I am working on Alfresco community development & customization for some time and found out deployment process quite time taking and long.
Customizing alfresco and re-deployment of your changes requires these steps to proceed
- stop alfresco
- generate AMPs from source
- copy paste AMPs from source to running Alfresco instance.
- apply AMPs
- start alfresco
So to reduce the manual copy paste of AMP's (Alfresco Module Package) and make this process automated i have created a shell script which might be useful to you as well.
Shell script to automate build & deployment of Alfresco is
ALFRESCO_HOME="/home/kunal/alfresco-5.0.d-xcms" SOURCE_HOME="/home/kunal/Projects/xseed/xcms" cd $ALFRESCO_HOME echo echo echo "//************* Stopping Alfresco ***************//"; echo echo sh alfresco.sh stop echo echo echo "//************* Building AMPs ***************//"; echo echo cd $SOURCE_HOME/xcms-alfresco/ mvn clean install sudo cp target/xcms-alfresco.amp $ALFRESCO_HOME/amps cd $SOURCE_HOME/xcms-share/ mvn clean install sudo cp target/xcms-share.amp $ALFRESCO_HOME/amps_share cd $ALFRESCO_HOME/bin echo echo echo "//************* Deploying AMPs ***************//"; echo echo sh apply_amps.sh -force cd .. echo echo echo "//************* Starting Alfresco ***************//"; echo echo sh alfresco.sh start tail -f tomcat/logs/catalina.out
You need to set
ALFRESCO_HOME
and
SOURCE_HOME
as per your system.
0 Comments
Post a Comment