1

Capistrano 在此命令上出错

  * executing "cd -- /home/root/apps/case/releases/20130221234114 && bundle exec 
rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile && cp -- 
/home/root/apps/case/shared/assets/manifest.yml
/home/root/apps/case/releases/20130221234114/assets_manifest.yml"

之后我得到了这个回复

** [out :: 108.60.137.195] ruby
** [out :: 108.60.137.195] :
** [out :: 108.60.137.195] no -I allowed while running setgid
** [out :: 108.60.137.195] (
** [out :: 108.60.137.195] SecurityError
** [out :: 108.60.137.195] )

除了在 macports 上编译 Ruby 的几个问题外,似乎找不到任何相关的东西。我在 Debian 6 上使用 rbenv 和 Ruby 1.9.3-p385。

4

1 回答 1

1

它是 rbenv 的共享(系统范​​围)安装吗?旧指令(目前已从 wiki 中删除,但可以在https://github.com/sstephenson/rbenv/wiki/Shared-install-of-rbenv/a86ef2e6b12254eeb7cecfd3bd878cf7382d1b4a访问)建议在 Ruby 解释器上设置 SGID 权限位,这会触发安全警告(并且有充分的理由)。

当前的 rbenv 文档建议安装项目本地安装(https://github.com/sstephenson/rbenv/wiki/Deploying-with-rbenv)。或者,它可以使用没有 SGID 的系统范围安装,并为捆绑程序使用 --deployment 标志,这样它就不会尝试写入系统范围的目录。

于 2013-02-22T14:58:56.747 回答