GitHub导入:找不到Gemfile

时间:2014-11-24 05:37:29

标签: ruby-on-rails github git-clone gemfile gemfile.lock

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

尝试执行bundle install时显示“无法找到Gemfile”。

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

  

Gemfile,Gemfile.lock& config.ru

我希望得到一些帮助来继续申请。

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

先谢谢你......

1 个答案:

答案 0 :(得分:1)

这是一个非常遗留的代码库,并且未初始化bundler。因此,为了安装其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 

我希望我的回答能为您提供足够的信息以便向前发展。感谢