安装步骤  参考:https://ruby-china.org/topics/32851

在云服务器上安装Ruby|Rails : http://www.cnblogs.com/znsongshu/p/6079223.html

在云服务器上安装数据库 : http://www.cnblogs.com/znsongshu/p/6767874.html

上传本地Rails工程到云服务器

安装Passenger for Nginx

配置Nginx启动rails

配置rails工程的production secret_key_base

-------------------------------------------------------------------------------------------------------------------------------------------------

在Aliyun上快速部署Ruby on Rails

https://ruby-china.org/topics/17553

Ubuntu 12.04 上使用 Nginx Passenger 部署 Ruby on Rails

https://github.com/ruby-china/homeland/wiki/Ubuntu-12.04-%E4%B8%8A%E4%BD%BF%E7%94%A8-Nginx-Passenger-%E9%83%A8%E7%BD%B2-Ruby-on-Rails

常见问题

Q: config.ru permission denied

chmod a+x project     //You need to loosen permissions on all parent directories too.

/opt/nginx/conf/nginx.conf 添加user zn; 在配置文件中添加用户名

Q: potential privilege escalation vulnerability. Passenger is running as root, and part(s) of the passenger root path .....can be changed by non-root user

路由里面需要添加root

Q: 生产环境下 mysql数据库不允许数据类型text json等的字段设置默认值

05-06 09:07