<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>&#1061;&#1086;&#1089;&#1090;&#1080;&#1085;&#1075; &#1085;&#1072; Sinatra &#1087;&#1088;&#1080;&#1083;&#1086;&#1078;&#1077;&#1085;&#1080;&#1077; &#1089; Apache &#1080; mod_rails

&#1055;&#1088;&#1080;&#1084;&#1077;&#1088;&#1077;&#1085; Apache vhost:
&lt;code&gt;
&lt;VirtualHost *&gt;
  ServerName [DOMAIN].com
  ServerAlias www.[DOMAIN].com
  DocumentRoot /www/[DOMAIN]/public
&lt;/VirtualHost&gt;
&lt;/code&gt;

config.ru
&lt;code&gt;
require 'index'
set :environment, :production
run Sinatra::Application
&lt;/code&gt;

index.rb
&lt;code&gt;
require 'rubygems'
require 'sinatra'

#Home Page
get '/' do
  "&#1058;&#1086;&#1074;&#1072; &#1077; &#1074;&#1089;&#1080;&#1095;&#1082;&#1086;...&#1076;&#1072;&#1074;&#1072;&#1081; &#1085;&#1072;&#1087;&#1088;&#1077;&#1076;!"
end
&lt;/code&gt;

&#1055;&#1088;&#1080;&#1084;&#1077;&#1088;&#1085;&#1072; &#1089;&#1090;&#1088;&#1091;&#1082;&#1090;&#1091;&#1088;&#1072; &#1085;&#1072; Sinatra &#1087;&#1088;&#1080;&#1083;&#1086;&#1078;&#1077;&#1085;&#1080;&#1077;
&lt;code&gt;
config.ru
index.rb
lib/
log/
public/
Rakefile
tmp/
views/
&lt;/code&gt;

&#1056;&#1077;&#1089;&#1090;&#1072;&#1088;&#1090;&#1080;&#1088;&#1072;&#1085;&#1077; &#1085;&#1072; &#1087;&#1088;&#1080;&#1083;&#1086;&#1078;&#1077;&#1085;&#1080;&#1077;&#1090;&#1086;
&lt;code&gt;
touch tmp/restart.txt
&lt;/code&gt;

&#1052;&#1086;&#1078;&#1077; &#1076;&#1072; &#1080;&#1079;&#1087;&#1086;&#1083;&#1079;&#1074;&#1072;&#1090;&#1077; &lt;a href="http://www.dreamhost.com/r.cgi?204674" target="_blank"&gt;DreamHost&lt;/a&gt; &#1079;&#1072; &#1093;&#1086;&#1089;&#1090;&#1080;&#1085;&#1075;. &#1050;&#1086;&#1075;&#1072;&#1090;&#1086; &#1085;&#1072;&#1089;&#1090;&#1088;&#1086;&#1081;&#1074;&#1072;&#1090;&#1077; &#1076;&#1086;&#1084;&#1077;&#1081;&#1085;-&#1072; &#1089;&#1080; &#1074; &lt;a href="http://www.dreamhost.com/r.cgi?204674" target="_blank"&gt;DreamHost&lt;/a&gt;, &#1087;&#1088;&#1086;&#1089;&#1090;&#1086; &#1084;&#1091; &#1082;&#1072;&#1078;&#1077;&#1090;&#1077; &#1076;&#1072; &#1072;&#1082;&#1090;&#1080;&#1074;&#1080;&#1088;&#1072; Ruby on Rails(mod_rails) &#1080; &#1079;&#1072;&#1076;&#1072;&#1081;&#1090;&#1077;, &#1082;&#1072;&#1090;&#1086; &#1076;&#1080;&#1088;&#1077;&#1082;&#1090;&#1086;&#1088;&#1080;&#1103; "/public"</body>
  <created-at type="datetime">2009-05-13T18:31:32+03:00</created-at>
  <id type="integer">26</id>
  <permalink>sinatra-apache-mod_rails</permalink>
  <private type="boolean">false</private>
  <title>Sinatra - Apache - mod_rails</title>
  <updated-at type="datetime">2009-05-13T18:32:56+03:00</updated-at>
  <user-id type="integer">2</user-id>
</post>
