Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
Sinatra + Passenger - ~fumi/ChangeLog
[go: Go Back, main page]

Prev / Next

2009-05-10 / Sinatra + Passenger

Passenger 経由で Sinatra で作ったアプリケーションにアクセスするには,
アプリケーションのあるディレクトリに
1. config.ru
2. public ディレクトリ
3. tmp ディレクトリ
を用意する.

config.ru の内容は

require 'app' # Sinatra アプリケーション
run Sinatra::Application


あとは httpd.conf に

<VirtualHost sinatra.example.com>
  ServerName sinatra.example.com
  DocumentRoot /path/to/SinatraApp/public
</VirtualHost>


などと書いておけばよい.

- Sinatraで鼻歌まじりのWeb開発
  http://www.slideshare.net/dara/sinatraweb?type=powerpoint
- Phusion Passenger をインストール [2009-05-10-2]

comments powered by Disqus