On Sun, Jun 8, 2014 at 9:15 PM, Maria Beckham <mariabeckha...@yahoo.com> wrote:
> So, that means, the way it works is as follows > > 1. Git repo structure should match tomcat webapp deployment directory > structure > 2. CartridgeAgent on the VM will be triggered on a git push event and > would do local pull and thereby treat is as an redeploy on a successful pull > > Right? > > > Yes, correct. @Chris, yes these need to be added to Wiki. APP_PATH property is getting set via "docroot" variable in puppet scripts, and you need to set that variable accordingly [1] [2] So If you are using puppet you will need to set the "docroot" variable. @Mari, please note. I think we need to document about these kind of other parameters as well. [1] https://github.com/apache/stratos/blob/master/tools/puppet3/modules/agent/templates/bin/stratos.sh.erb [2] https://github.com/apache/stratos/blob/master/tools/puppet3/manifests/php.pp > > ------------------------------ > *From:* chris snow <chsnow...@gmail.com> > *To:* dev <dev@stratos.apache.org> > *Cc:* Maria Beckham <mariabeckha...@yahoo.com> > *Sent:* Saturday, June 7, 2014 11:47 PM > *Subject:* Re: ADC code > > Hi Sajith, thanks for this. Do you think this information needs to get > added to the wiki? I.e. will other users need to know this as well? > > > On 8 Jun 2014 04:15, "Sajith Kariyawasam" <saj...@wso2.com> wrote: > > Hi Maria, > > Yes, as Chris have mentioned code for git operations are in Cartridge > Agent component. > > You need to do the git pull directly to the deployment directory of the > particular cartridge. That can be configured using the APP_PATH system > property in Cartridge Agent's startup script stratos.sh [1] > For eg, in Tomcat cartridge you can have APP_PATH configured to > <TOMCAT_HOME>/webapps, and have the war files in your git repository, and > the git clone / pull is done to the exact location. > > Hope this helps > > Thanks, > Sajith > > [1] > https://github.com/apache/stratos/blob/master/products/cartridge-agent/modules/distribution/src/main/bin/stratos.sh > > > On Sun, Jun 8, 2014 at 2:43 AM, chris snow <chsnow...@gmail.com> wrote: > > Hi Maria, > > I think you want to be looking at the cartridge agent [1] the git > pull seems to be here [2] > > I'm not sure about code for deploying, hopefully someone else will be > able to step in with this information... > > Cheers, > > Chris > > --- > [1] > https://github.com/apache/stratos/tree/master/components/org.apache.stratos.cartridge.agent > [2] > https://github.com/apache/stratos/blob/master/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/CartridgeAgent.java#L331 > > On Sat, Jun 7, 2014 at 9:55 PM, Maria Beckham <mariabeckha...@yahoo.com> > wrote: > > Hi, > > > > Which java code or components are responsible for doing git pull and > > deploying to tomcat server on git push notification? > > > > I saw some code like updaterepository but i dont see any git pull or > deploy > > code to update tomcat for java app war. > > > > Thanks, > > Maria > > > > -- > Check out my professional profile and connect with me on LinkedIn. > http://lnkd.in/cw5k69 > > > > > -- > *--* > *Sajith Kariyawasam* > *Mobile: +94772269575* > > > > -- *--* *Sajith Kariyawasam* *Mobile: +94772269575*