Sorry, no code, but I can give you a general outline of some methods. It would be great to hear more ideas on this.
We do this a couple of diff ways when using AWS EC2 instances. One uses an AMI that includes Openbd and uses SVN to get code from our SVN server that code is in our /etc/init.d/jetty script ( do svn export, then start jetty ) what code it gets is a function of "user data" value which is EC2 API variable set at instance startup. the other approach for more static code ( production ) server instances has jetty installed on the AMI, but gets openbd including framework code + app specific cfml code from S3. The reason we do this is that the production server code is more static and S3 is more stable than our SVN. In the S3 based version we also feed specifics via "user data" value. A simple setup is to use a Openbd scheduled event to go get the necessary code from somewhere. The VM would have to be setup with working openbd. If you are using EC2 and know that the server will be behind a Load Balancer you can avoid the scheduled event by using the heartbeat query coming from the LB instead. When the server starts the code used to respond to the heartbeat check coming from the LB system, returns false, gets the code, then having got the code, returns true to the LB, which then adds it to the LB group. On Jun 27, 11:24 am, Mike Henke <[email protected]> wrote: > So I am sure there are several ways to tackle setting up a vm like > turnkey tomcat-apache and point it to the host with one code location. > Anyone have a good walk-through or resources for a novice? -- official tag/function reference: http://openbd.org/manual/ mailing list - http://groups.google.com/group/openbd?hl=en
