Ruby on rails 3.2 Rails/Phusion仅列出文件

Ruby on rails 3.2 Rails/Phusion仅列出文件,ruby-on-rails-3.2,passenger,Ruby On Rails 3.2,Passenger,安装phusion passenger并部署rails应用程序后,当我转到[a链接]时,我只看到我的app/public目录下列出的文件。我确保“app”指向“app/public”目录,并且根据用户文档正确设置了phusion passenger。罪魁祸首是SELinux不允许apache运行phusion passenger。我在这里找到了答案- 下面是我如何修复它的: [root@server conf]# getenforce Enforcing [root@server conf]#

安装phusion passenger并部署rails应用程序后,当我转到[a链接]时,我只看到我的app/public目录下列出的文件。我确保“app”指向“app/public”目录,并且根据用户文档正确设置了phusion passenger。

罪魁祸首是SELinux不允许apache运行phusion passenger。我在这里找到了答案-

下面是我如何修复它的:

[root@server conf]# getenforce
Enforcing
[root@server conf]# echo 0 > /selinux/enforce
[root@server conf]# getenforce
Permissive
[root@server conf]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
[root@server conf]# passenger-status
----------- General information -----------
max      = 6
count    = 0
active   = 0
inactive = 0
Waiting on global queue: 0

----------- Application groups -----------
[root@server conf]#
现在,当我转到我的应用程序URL时,它工作正常