Webfaction for Rails 上的 Sphinx
我正在寻找安装 Sphinx 和 thinking_sphinx 关于我的基本共享托管计划,位于 webfaction 这样我就可以正确部署我的 Rails 应用程序。我确信 webfaction 在我的计划中支持这一点。就技能水平而言,我远不及 Linux 大师,但我了解基础知识。
如何在没有 sudo 权限的情况下在共享主机上安装 Sphinx?
I'm looking to install Sphinx and thinking_sphinx on my basic shared hosting plan at webfaction so I can properly deploy my rails app. I'm positive webfaction supports this under my plan. I'm not anything near a linux guru in terms of skill level, but I know the basics.
How can I install Sphinx on my shared host without having sudo privileges?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我看到您也在 webfaction 上发布了此内容,
将链接放在这里,供其他人使用使…受益
I see that you posted this also at webfaction
Putting the link here, for others to benefit ...
Webfaction 允许您添加自己的 gem,无需 sudo。因为它是共享托管,所以它们将乘客/您的应用程序所需的 gem 安装到非标准位置(/home/<用户名>/webapps//gems/)。您需要将其添加到 PATH 才能在 ssh 会话中执行已安装的 gem,并且添加 GEM_PATH/GEM_HOME 也很有用。例如,如果您使用捆绑器,如果不将正确的目录添加到您的 PATH 中,您的 bash 会话将无法找到“bundle”。
Webfaction 在 http://docs.webfaction 上有一篇关于手动安装 gem 的简短文章。 com/software/rails.html#installing-gems
作为旁注,我可以使用 capistrano 进行部署在 webfaction 上运行 Rails3 应用程序。捆绑任务会自动安装所需的 gem。
PS - 这确实是一个 gem 和 webfaction 问题。您可能想要修改此问题的标签。
Webfaction allows you to add your own gems without sudo. Because it's shared hosting they install the gems required by passenger/your app into a non standard location (/home/< username >/webapps/< application_name >/gems/). You'll need to add it to PATH in order to execute an installed gem in an ssh session and adding GEM_PATH/GEM_HOME can be useful as well. As an example, without adding the right directory to your PATH your bash session wont find 'bundle' if you're using bundler.
Webfaction has a short writeup of installing gems by hand at http://docs.webfaction.com/software/rails.html#installing-gems
As a side note, I'm able to run a Rails3 app on webfaction using capistrano for deployment. The bundle task installs the needed gems automatically.
PS - This is really a gem and webfaction issue. You may want to modify your tags for this question.