Charm for webapp with webserver or not?

2016-01-04 Thread Patrik Karisch
Hi all, if I create a charm for my webapp, should it already install the webserver or should it only provide a interface as subordinate for e.g. the apache2 charm? In the first case, each webapp must be run in separate containers as a minimum.. But I think scaling up is much easier, because it

Re: Charm for webapp with webserver or not?

2016-01-04 Thread Patrik Karisch
Hi Marco, seems the best way to do so. Better supply my correct configuration of nginx and php-fpm instead relying on another charm. Pro: My webapp charm can specialize all config params. I've read the charm layers already and they seem interesting to build different webapps. Although I must

Re: Charm for webapp with webserver or not?

2016-01-04 Thread Marco Ceppi
Hi Patrik, We have a few layers for php and nginx (http://interfaces.juju.solutions/). While are almost exclusively written in Python, Bash is another supported language for creating layers (though, with less bash layers written at the moment, it's likely not as well tested as Python). Marco On