2

我从“GitHub”导入了一个 Rails 应用程序, https://github.com/farra/goo.git

在尝试这样做bundle install时,它显示“无法找到 Gemfile”。

该存储库实际上没有下面列出的文件。

Gemfile、Gemfile.lock 和 config.ru

我需要一些帮助来继续进行该申请。

有没有办法用它必要的 Gems 为该应用程序创建一个 Gemfile?

先感谢您...

4

1 回答 1

1

这是一个非常遗留的代码库,并且捆绑器未初始化。因此,为了安装它的 gem 文件,您需要运行以下命令:

rake gems:install

查看他们的环境文件: config/environment.rb

他们已经定义了一些可能的步骤来运行该项目,我认为你应该仔细阅读它们。供大家参考,我在这里再次分享:

rails goo
cd goo
script/plugin install git://github.com/dcu/nanite-rails.git
./script/generate nanite
./script/generate agent counter schedule count
./script/generate model Count total:integer interval:integer
./script/generate controller counts
rake db:migrate
modify environment.rb
modify routes.rb
setup passenger vhosts # for production server
edit the counts_counter and the count nanite agent 

我希望我的回答现在可以为您提供足够的信息以继续前进。谢谢

于 2014-11-24T06:30:09.860 回答