cancel
Showing results for 
Search instead for 
Did you mean: 

WCM PROJECT DEPLOYMENT

jak-wei
Champ in-the-making
Champ in-the-making
HI ALL ,

I built a project in Company/Web Projects , when i create a space and bulk import a war package,in the alfresco ,i can preview the project .

but i want to deploy the project to other server and use other url .for example , i use "http://localhost:8080/myProject"  what i do ? please help me . thank you all ;
16 REPLIES 16

samuel_penn
Champ in-the-making
Champ in-the-making
Have you seen these pages on the wiki http://wiki.alfresco.com/wiki/Category:WCM_Deployment?

As long as your links in the web site are all relative, the site should just work when it gets deployed to another server.

Sam.

peggyw
Champ in-the-making
Champ in-the-making
I have the same problem. What is the url to use to browse the deployed web site? I cannot find anything in http://wiki.alfresco.com/wiki/Deployment

samuel_penn
Champ in-the-making
Champ in-the-making
That depends on where you're deploying to. For example (in 2.1) I've set the "Deploy To" to be "\\daiakuji", which defines a file system deployment. I have a file system receiver running on daiakuji which just writes the deployed website into a Tomcat webapp folder. The URL of the deployed website is therefore the URL of the Tomcat webapp I've deployed into (which is actually an external virtual hostname, whereas daiakuji is the internal name of a development server, so there's no relationship between the deployment URL and the public URL of the website in my case).

In 2.2 and beyond, you have a few more options available to you when setting up deployment.

The point you may be missing is that deployment generally deploys to a different server, and you need to set up a receiver (and web server) on that server to receive the deployment. What do you have configured for deployment (and which version of Alfresco are you using)?

peggyw
Champ in-the-making
Champ in-the-making
Thanks. I couldn't find the interface for adding an Alfresco server receiver  and a file system receiver as shown in the link http://wiki.alfresco.com/w/images/6/6e/Deploy-server-config.jpg

Where is it? I am using Alfresco Community-wcm-2.1.0

samuel_penn
Champ in-the-making
Champ in-the-making
That screenshot is for 2.2. For 2.1, select "Edit Web Project Settings", and the deploy setting is on the first page of the wizard. Click the ? next to "Deploy To" for some help on the syntax. It's much simpler than in 2.2.

To deploy to a file receiver, you specify "\\servername", to deploy to an Alfresco repository just use "servername". The file system deployer can be downloaded from:

http://sourceforge.net/project/showfiles.php?group_id=143373&package_id=207402&release_id=524562

You'll then need to configure the deployment receiver, and start it up. Once that has been done, open up the Recent Snapshots from the Staging Sandbox, and click the green arrow next to a snapshot to deploy it. If you don't have any snapshots, you'll need to publish some content first.

Sam.

peggyw
Champ in-the-making
Champ in-the-making
Following your instruction, I have successful deployed a web site through file server deployment.

However I still couldn't find anything in the tomcat's webpps in the reciever server.
Could you tell me what the url to use to view the deployed website?

Thanks.

samuel_penn
Champ in-the-making
Champ in-the-making
How have you configured the receiver? Is your content actually being written to the file system?

The application-context.xml (part of the receiver installation) configures where the content is written to (in mine, this is /opt/deployment/www):



<property name="targetData">
    <map>
        <entry key="default">
            <map>
                <entry key="root"><value>/opt/deployment/www</value></entry>
                <entry key="user"><value>admin</value></entry>
                <entry key="password"><value>admin</value></entry>
                <entry key="runnable"><value>org.alfresco.deployment.SampleRunnable</value></entry>
            </map>
        </entry>
        …

Pathnames may be different if you're not using Linux. Is your content on the file system where you expect it to be? If that location is inside a Tomcat webapp directory, or Apache htdocs directory, then it should be picked up by the web server. Note that it will have a root folder equal to the project's default webapp (which defaults to ROOT).

So, if you have tomcat installed at /opt/tomcat5, and your project's webapp is set to be "mysite", then you should set the deployment root in the application-context.xml to "/opt/tomcat5/webapps". When you run the deployer, it will write the content to /opt/tomcat5/webapps/mysite. Your URL would then be http://myserver:8080/mysite

At the end of the day, all its doing is writing files to the file system. You need to make sure that there is a web server there to read those files, and serve them up. The exact URL will depend on the web server you are using.

peggyw
Champ in-the-making
Champ in-the-making
I have successfully deployed a web project to a tomcat I set up with everything in it. I will look into deploying to a linux box.
Thanks for everthing.

jak-wei
Champ in-the-making
Champ in-the-making
Thank you samuel.penn ,peggyw . all is ok now .