从源代码在 Ubuntu 上安装 foreman
我正在本地开发 NodeJS Heroku 应用程序,我想使用 foreman 来运行我的应用程序。它显然没有与 Heroku 工具带一起安装(还有其他人遇到过这个问题吗?)。
有没有办法重新安装 Heroku 工具带来获取 foreman?或者我可以从 git 找 foreman 吗?我在此处看到了说明,但在获取存储库并执行后:
git submodule init
git submodule update
它仍然说“未找到“foreman”命令。我该怎么做才能让领班上班?
谢谢
编辑:我正在使用 Ubuntu
I'm working locally on a NodeJS Heroku app, and I'd like to use foreman to run my app. It apparently didn't install with the Heroku toolbelt (has anyone else had this problem?).
Is there a way to re-install the Heroku toolbelt to get foreman? Or could I get foreman from git? I saw the instructions here but after getting the repo and executing:
git submodule init
git submodule update
It still says that the "foreman" command is not found. What can I do to get foreman to work?
Thanks
Edit: I'm using Ubuntu
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
最好的选择可能是与 Rubygems 一起安装它。您没有提及您使用的是哪个操作系统,但我们会假设您使用的不是像 Windows 这样的操作系统 (;)),
如果您已经恢复了版本,请跳过下一点。您应该只需要在 Ubuntu 上安装 RubyGems(OS X 在最新版本中都有)
仅限 Ubuntu
然后
Your best bet is to probably install it with Rubygems. You don't mention which OS your on, but we'll assume your not on something mental like Windows (;))
if you've got a version back, skip the next bit. You should only need to install RubyGems on Ubuntu (OS X has it in most recent versions)
Ubuntu only
then
您链接到的项目 http://theforeman.org/projects/foreman 不是 Heroku 的工头。
Heroku 的 foreman 是 Ruby gem,必须作为 Ruby gem 安装:
是否需要使用
sudo
取决于您的环境、您如何安装 ruby 和 rubygems 等。The project you linked to, http://theforeman.org/projects/foreman, is not Heroku's foreman.
Heroku's foreman is a Ruby gem, and must be installed as a Ruby gem:
Whether you need to use
sudo
depends on your environment, how you installed ruby and rubygems, etc.我只是想修改@Neil的答案。您需要安装 ruby,而不是 rubygems。
安装 Ruby 后,您可以安装 foreman。
(你不需要 --no-rdoc --no-ri 但我喜欢在没有生产环境文档的情况下安装 gems)
如果你是 Ruby 爱好者,也可以看看 rvm。您可能不想使用 Ubuntu/Debian 的 Ruby 版本。
I just wanted to amend @Neil's answer. You need to install ruby, not rubygems.
When Ruby is installed you can then install foreman.
(You don't need --no-rdoc --no-ri but I like to install gems without the documentation on production boxes)
Also take a look at rvm if you're a Ruby person. You might not want to use Ubuntu/Debian's version of Ruby.