Deploy Compojure / Sinatra Applications

What is the preferred way to deploy compojure / sinatra applications? I have several sites running on the host, so I cannot run jetty / mongrel on port 80. How should I handle multiple sites / applications running on the same host?

+3
source share
3 answers

Use a web server such as Apache , which runs on port 80 and uses virtual hosts to direct traffic to the correct application server. Thus, basically you will start each application server (berth / mongrel, etc.) on a different port, and then in each virtual host it will have a different configuration to use something like a mod proxy to redirect traffic to the application server . You can use another web server, for example lighttpd or nginx . For the sinatra app, you can also watch Phusion Passenger, as well as fashion rails as well as a modular rack, which theoretically works with any application in the rack, although I used only Rails.

, , -, , - 80, , .

+7

(, AllegroServe) . :

  • , (, 8080)
  • pound ( Nginx ..) 80, .

, ( Nginx). SSL- HTTP- , .

+3

Use the passenger! http://modrails.com is a plugin for apache and nginx that allows you to (very) easily run ruby ​​application as a virtual host

0
source

Source: https://habr.com/ru/post/1711811/


All Articles