bash命令其Rails没有找到 [英] Bash Command which Rails does Not Find
问题描述
乘客说:
Ruby on Rails application could not be started
...
Command 'exiftool' not found (MiniExiftool::Error)
当我登录使用ssh,我在命令工作正常任意目录exiftool。
When I login with ssh and I type exiftool in any directory the command works properly.
我有两个的.bash_profile和.bashrc中
I have the follwing line in both .bash_profile and .bashrc
export PATH=$PATH:$HOME/bin
有没有可能是铁轨(MiniExiftool插件)不承认bash命令?我怎样才能解决这个问题?
Is it possible that Rails (MiniExiftool plugin) does not recognize that bash command? How can I fix this behaviour?
推荐答案
为您的服务器运行的不包括目录 exiftool
是用户设置的PATH你。可以将其添加到用户的路径,也可以使用其完整路径参考 exiftool
。我建议出于安全考虑第二种方法。有许多攻击涉及将木马程序在用户的路径前进,其中真正的二进制文件的宿主目录中。
The PATH for the user your server runs as does not include the directory that exiftool
is in. You can either add it to that user's path, or you can refer to exiftool
using its full path. I'd recommend this second approach for reasons of security. There are a number of attacks that involve putting trojan horses in a user's path ahead of the directories where the real binaries live.
这篇关于bash命令其Rails没有找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!