Return-Path: Delivered-To: apmail-forrest-user-archive@www.apache.org Received: (qmail 86243 invoked from network); 3 Aug 2005 10:53:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Aug 2005 10:53:49 -0000 Received: (qmail 64403 invoked by uid 500); 3 Aug 2005 10:53:48 -0000 Delivered-To: apmail-forrest-user-archive@forrest.apache.org Received: (qmail 64365 invoked by uid 500); 3 Aug 2005 10:53:47 -0000 Mailing-List: contact user-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@forrest.apache.org List-Id: Delivered-To: mailing list user@forrest.apache.org Received: (qmail 64351 invoked by uid 99); 3 Aug 2005 10:53:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2005 03:53:47 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [203.121.192.6] (HELO mail.e-wire.net.au) (203.121.192.6) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2005 03:53:37 -0700 Received: from madaboutipv6 (203-121-204-130.e-wire.net.au [203.121.204.130]) by mail.e-wire.net.au (8.12.11/8.12.11) with ESMTP id j73Ak0GG017434 for ; Wed, 3 Aug 2005 18:46:01 +0800 Received: from 127.0.0.1 (AVG SMTP 7.0.338 [267.9.9]); Wed, 03 Aug 2005 18:53:46 +0800 Message-ID: <00f501c59819$9f2e6770$0200a8c0@madaboutipv6> From: "Gav...." To: References: <42ED7699.1060200@cfas.org> <200507312317.20420.diwaker@apache.org> <42EEC320.6010507@cfas.org> <1122976071.7197.41.camel@localhost.localdomain> <42EFEB23.2030506@cfas.org> <1123023670.18215.8.camel@localhost.localdomain> <00c201c597b9$fe8aa450$0200a8c0@madaboutipv6> <42F00FB0.6080403@cfas.org> <20050803012053.GA23981@igpb.indexgeo.com> Subject: Re: deploy built website to your ISP (Was: Help with new templates) Date: Wed, 3 Aug 2005 18:53:45 +0800 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=iso-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ----- Original Message ----- From: "David Crossley" To: Sent: Wednesday, August 03, 2005 9:20 AM Subject: deploy built website to your ISP (Was: Help with new templates) | When starting a new topic, please change the Subject. Yep, no problem, apologies. | | > > | BTW there are some brave user to use them live. Diwaker is using them in | > > | on his homepage. ;-) | > > | http://floatingsun.net | > > | > > Is this on Diwakers' own web server or public? | | If you see it with your web browser, then it is public. Ok, slip of the keyboard there, I meant is the site published on a private (Home) server or a public (ISP) one. | | > >I was going to ask the question as I don't see it | > > documented anywhere, how does | > >anyone publish a forrest site to the web so it | > >is available to all. | > | > The way *I* do it is to run forrest from the root of the seeded tree, in | > my case in these emails it's .../cfas-new/, where you'll likely find the | > src/ directory. | > | > >I have an apache web server running so it is not a | > > problem, just wondered if | > >this project was meant for intranet use only or | > > if porting to an ISP web space | > >was possible or a future goal. | > | > That's good. What you'd want to do for a static site is give Apache | > access to the build/site directory under the seeded tree, eg. | > .../cfas-new/build/site/ There's probably an index.html file there that | > Apache will be happy to serve. | | That is very dangerous. If you break your forrest | build in any way, then your live web server is broken. | Much better to separate the concerns. Build your | site in one place, then deploy it to the server. | | > Another method is to copy the .../build/site/* tree | > into the web root of a server. | | Gav, i am confused by your question, so i will try | to answer what i think the question is. | | You have an account with an ISP, which provides a | special directory to place a set of documents for | your website (called the document root). | | You have Forrest installed on your office desktop. | cd to the top of your forrest site (which is | where the forrest.properties file lives). | Do 'forrest' which generates the documents into | build/site directory. | | Now you need to deploy the contents of build/site | onto your ISP's webserver. That will entirely | depend on how your ISP provides you access. | | One way would be to do it manually. | cd build/site | tar cf mysite.tar * | gzip *.tar | ... use 'scp' or 'ftp' or whatever method that | your ISP provides to put that file onto your webserver. | Then log in to your server and uncompress the | archive into the document root of your webserver. | Your ISP might even enable you to use ftp or scp | to deploy the files straight into your document root | without the gzip and followup login step. Another | way would be to use 'rsync'. Thanks for the above, I have uploaded using FTP and the site works fine. FYI I am using the latest 0.8-dev version. | | How to do these manual methods is beyond the | scope of Forrest project. No problem. | | The best way to deploy your generated website | is to use "forrestbot": | http://forrest.apache.org/tools/forrestbot.html | | It has various different mechanisms for deployment. | We use the "svn" deployment technique for the | forrest.apache.org website. Our generated website | is added to a Subversion repository, then on the | server there is an outomated process which does | cd to our document root, then 'svn update'. | | Forrestbot has other deployment methods such | as ftp and scp, not yet using rsync but that | would be possible to develop. Sounds good, I will take a look at Forrestbot. | | Of course Forrest can also be used in dynamic mode. | There are various ways to do this. One way is | to cd to your forrest source top-level and do | 'forrest war'. This creates a web application archive | which you add to your ISP's servlet containers' webapps | directory. (e.g. Tomcat or Jetty). How you do this | is completely beyond the scope of the Forrest project. I imagine, unless one is on first name terms with their ISP that getting them to do that will be a bit blood/stone scenario, I will set it up on my own server though and have a play. In terms of 'dynamic' are we talking PHP style here, in replacement of or in conjunction with? Such as grabbing content from a mySQL database and using PHP to add it to web page(s). Thanks for your help. Now I will get back to the validation problems. Gav... -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.9.9/62 - Release Date: 2/08/2005