【发布时间】:2016-06-09 02:36:57
【问题描述】:
我一直在关注一些在线教程来尝试设置我的 rails 应用程序。 似乎有一个权限配置,我试图修复它,但没有任何运气。
我使用的是 Ruby 2.3.0。 我有一个名为 deploy 的用户(执行 Capistrano 任务)和另一个 sudoer jwang。即使通过两个用户,我也将 rvm 安装为多用户安装。
这是日志中的错误:
App 1780 stderr: /etc/profile.d/rvm.sh: line 35: /home/deploy/.rvm/scripts/rvm: Permission denied
App 1780 stderr: /bin/bash: /home/deploy/.bash_profile: Permission denied
App 1780 stdout:
App 1780 stderr: *** ERROR ***: Cannot execute /home/deploy/.rvm/gems/ruby-2.3.0/wrappers/ruby: Permission denied (13)
这是我当前站点的配置文件。
<VirtualHost *:80>
ServerName creste.ca
# Tell Apache and Passenger where your app's 'public' directory is
DocumentRoot /var/www/creste/current/public
PassengerRuby /home/deploy/.rvm/gems/ruby-2.3.0/wrappers/ruby
# Relax Apache security settings
<Directory /var/www/creste/current/public>
Allow from all
Options -MultiViews
# Uncomment this if you're on Apache >= 2.4:
Require all granted
</Directory>
任何见解将不胜感激。
【问题讨论】:
-
什么命令,导致错误?
-
当我尝试使用 sudo systemctl restart httpd 启动服务器并从浏览器查看页面时,它告诉我查看日志。
标签: ruby-on-rails apache centos rvm passenger