Phusion Passenger is an application server for Ruby (Rack) apps.
It allows you to get your web apps online with the least amount of hassle, by taking
care of pretty much all of the heavy lifting for you when it comes to managing
your apps' processes and resources.
- app-servers ›
Deploy Apache2 with Passenger module.
juju deploy apache2-passenger
Deploy Rack application and all dependent services (see how).
juju deploy rack --config myapp.yml
juju add-relation rack apache2-passenger
Open the stack up to the outside world.
juju expose apache2-passenger
Find the apache2-passenger instance's public URL from
It's possible to use this service with load balancer. Here is an example
Run steps 1-3 from Usage section
Deploy load balancer, e.g. haproxy
juju deploy haproxy
Relate it to the stack
juju add-relation haproxy apache2-passenger
Scale up the stack
juju add-unit -n3 apache2-passenger
Expose load balancer up to the outside world.
juju expose haproxy
Under the hood
- installs Apache2 and all dependencies
- installs Ruby 1.9.3, Phusion Passenger, apache2-mod-passenger from Brightbox Launchpad package repository.
- configures Apache2 to run Rack applications