Hello Denis,

Thanks for the email.  You are correct that you would use the "juju
upgrade-charm" command to update the contents of your web application.  You
would implement the upgrade-charm hook to do what is necessary to update
your web application.

There is an excellent example of an existing charm written by Robert Ayres
that you can look at here:
https://manage.jujucharms.com/~robert-ayres/precise/j2ee-deployer

If you have charm tools installed you can download this example to your
computer:
juju charm get cs:~robert-ayres/precise/j2ee-deployer

The README file details how you can use the j2ee-deployer charm to deploy
webapps and update them as necessary.  This would be a great model to use
for your own charm.

Let me know if you need any more help on this!

   - Matt Bruzek <[email protected]>


On Tue, Jul 1, 2014 at 9:47 PM, Denis Weerasiri <[email protected]>
wrote:

> Hi,
> I mentioned the command as "charm-update". But it should have been
> "upgrade-charm"
> https://juju.ubuntu.com/docs/authors-charm-upgrades.html
>
>
> On Wed, Jul 2, 2014 at 12:44 PM, Denis Weerasiri <[email protected]>
> wrote:
>
>> Hi,
>> Support I have written a charm to deploy a web application on top of
>> tomcat. And now I need to redeploy the web application when I update the
>> source repository of the web application. What is the best practice to do
>> this?
>> What I have in mind is to write a new version of charm and use
>> charm-update command. So juju will re-deploy the web application.
>>
>> --
>> Thanks,
>> Denis Weerasiri
>>
>> Sent from my iPhone
>>
>
>
>
> --
> Thanks,
> Denis Weerasiri
>
> Sent from my iPhone
>
> --
> Juju mailing list
> [email protected]
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju
>
>
-- 
Juju mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to