Current Branch
https://svn.rivetlogic.com/repos/rivets/crafter/app/crafter-studio/branches/1-6-x
How to build and deploy
- Run ./build.sh in cstudio-1-6.0 folder. (provide -Pdev for dev build. e.g. ./build.sh -Pdev)
- Deploy alfresco-svcs-war/target/alfresco.war and slingshot-rivet/target/share.war to alfresco tomcat instance.
- Create custom-cstudio-services-cfg.properties in tomcat/shared/classes/alfresco/extension folder
tomcat/shared/classes/alfresco/extension/custom-cstudio-services-cfg.properties
# custom properties for cstudioAmp services # repository admin userName ServicesBootstrapBean.userName=admin # repository admin password ServicesBootstrapBean.password=admin # load the latest files/folders/configuration? ServicesBootstrapBean.enabled=false # deployment report target - for recently made live widget cstudioWcmDeploymentService.deploymentReportTarget=acme-com-prod # server environment cstudioWcmDeploymentService.deploymentDelayInSecs=30 #Enable/Disable file locking (block multiple users from editing) ServicesBootstrapBean.stateCleaningEnabled=false ServicesBootstrapBean.siteName=acme-com # Provided dummy value, in real these value will come from shared directory. ServicesBootstrapBean.buildDataLocation=/tmp/builddata ServicesBootstrapBean.importBuildDataFromLocation=false
- Start alfresco
How to enable importing example sites
- Copy demo-sites folder to a local location (e.g. /tmp/builddata)
- Remove all .svn folder under /tmp/builddata/demo-sites (for i in `find . -name '.svn'`; do rm -rf $i; done)
- Update the following properties in tomcat/shared/classes/alfresco/extension/custom-cstudio-services-cfg.properties
ServicesBootstrapBean.enabled=true ServicesBootstrapBean.buildDataLocation=/tmp/builddata ServicesBootstrapBean.importBuildDataFromLocation=true
- Restart alfresco
How to change configuration file locations and names
Add the following variables and change values to be the new locations and file names. However, configuration files paths must exist under the ServicesBootstrapBean.buildDataLocation folder. (e.g. /tmp/buildata/demo-sites/repository-config.xml)
tomcat/shared/classes/alfresco/extension/custom-cstudio-services-cfg.properties
ServicesBootstrapBean.repositoryConfigFile=repository-config.xml ServicesBootstrapBean.projectsConfigFile=web-projects-config.xm
How to access share
- Go to http://acme-com.www--sandbox.127-0-0-1.ip.alfrescodemo.net:your-port-number/share/
- Create a site with URL: acme-com (WEM site)
How to update authoring URL
- Login to alfresco and go to Company Home/ecr/config/sites/acme-com/environment-overrides/local
- Update environment-config.xml
<preview-server-url>http://acme-com.www--sandbox.127-0-0-1.ip.alfrescodemo.net:your-port-number</preview-server-url> <authoring-server-url>http://acme-com.www--sandbox.127-0-0-1.ip.alfrescodemo.net:your-port-number/share</authoring-server-url>
Connecting Apache
<VirtualHost *:80>
ServerName csfork
ServerAlias csfork.vm.rivetlogic.com
ServerAlias *.csfork.vm.rivetlogic.com
LogLevel warn
CustomLog /var/log/apache2/csfork-access.log combined
ErrorLog /var/log/apache2/csfork-error.log
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
# crafter not serving mimetype css requires
DefaultType text/html
<Location ~ "/share/.*">
# Orbeon forms requires
DefaultType application/xhtml+xml
</Location>
<Location ~ "/proxy/authoring/service/cstudio/wcm/preview/overlay/css.*">
# crafter not serving mimetype css requires
DefaultType text/css
</Location>
#RewriteEngine on
ProxyPreserveHost ON
# AJP was including request headers in body so we are using http protocol
# ProxyPass / ajp://localhost:8009/
# ProxyPassReverse / ajp://localhost:8009/
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
</VirtualHost>