安装依赖库
安装 passenger
配置自启动脚本
配置rails
[quote]
http://www.modrails.com/documentation/Users%20guide%20Nginx.html
https://gist.github.com/216549
[/quote]
sudo apt-get install libcurl4-openssl-dev安装 passenger
gem install passenger
rvmsudo passenger-install-nginx-module配置自启动脚本
[url]https://github.com/RobinWu/snippets/tree/master/shell[/url]配置rails
sudo /etc/nginx/nginx.conf
server {
server_name www.foo.com;
listen 80;
root /webapps/foo/public;
passenger_enabled on;
passenger_use_global_queue on;
}
[quote]
http://www.modrails.com/documentation/Users%20guide%20Nginx.html
https://gist.github.com/216549
[/quote]
本文介绍如何通过安装Passenger及配置Nginx来部署Ruby on Rails应用程序。包括安装必要的依赖库、设置自启动脚本及配置Nginx服务器等步骤。
1071

被折叠的 条评论
为什么被折叠?



