ruby-on-railsgithubgit-clonegemfilegemfile.lock

GitHub Import: Could not locate Gemfile


I have imported a Rails Application from "GitHub", https://github.com/farra/goo.git

While trying to do bundle install in that it shows "Could not locate Gemfile".

That repository actually don't have the below listed files with it.

Gemfile, Gemfile.lock & config.ru

I would like some assistance to proceed with that application.

Is there any way to create a Gemfile for that application with its necessary Gems?

Thank You In Advance...


Solution

  • This is a very legacy codebase and bundler is not initialized. So in order to install its gem files you need to run the following command:

    rake gems:install
    

    checkout their environment file: config/environment.rb

    And they have defined some possible steps to run that project I think you should read them carefully. For your reference, I am sharing here again:

    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 
    

    I hope my answer could give you enough info now to move forward. Thanks