linux
分类: Python/Ruby
2012-02-28 12:06:15
1.go to
and select proper package
2.untar the package
3.install pcre
download and install it
4.run the command
passenger-install-nginx-module
5.configurations shoule be like below
server {
listen 80;
server_name
root /somewhere/public; # <--- be sure to point to 'public'!
passenger_enabled on;
}
7配置config.ru
注意该文件应该放在public上一层目录,之后require相应的rb文件。这东西log里面还看不到提示,害我搞了半天。
[root@test-pangaeadns1 apps]# cat config.ru
# config.ru
require 'rubygems'
require 'sinatra'
require './app.rb'
run Sinatra::Application