Ubuntu-16.04 [SOLVED]: Rails console not launching [I'm in the directory]

Ubuntu-16.04 [SOLVED]: Rails console not launching [I'm in the directory]

Home Forums Ubuntu 16.04 Ubuntu-16.04 [SOLVED]: Rails console not launching [I'm in the directory]

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #37000

    Anonymous

    QuestionQuestion

    Rails C and Rails S not working when in the correct directory.

    have tried:

    $ bundle exec rake rails:update:bin
    

    this returns the following error:

    bundler: command not found: rails:update:bin
    Install missing gem executables with `bundle install`
    

    I have ran:

    Bundle Install
    

    this still returns the same error

    Have changed directories (higher and lower), repeated steps and attempted commends for same result.

    I was running rails server, when i stopped the server and tried to restart server, the error appeared, so I’m thinking this has something to do with a physical location change (potentially the bin file), which is consistent as when I try and run a bin/rails command, i’m receiving an error of:

    bundler: command not found: rails:update:bin
    Install missing gem executables with `bundle install`
    

    I have tried to rake the bin folder as below:

    rake rails:update:bin
    

    however I am receiving this error:

    rake aborted!
    Don't know how to build task 'rails:update:bin' (see --tasks)
    

    Finally, I have checked the physical location and there is a .bin file, however this folder is empty and it’s not in a .gitignore directory.

    Ancillary information
    Rails version: 5.1.4
    ruby version: 2.3.4
    Server: heroku
    OS. Ubuntu 16.04 (via virtualbox).
    I have not upgraded rails, this is a fresh install

    I am at a loss.

    #37001

    Anonymous

    Accepted AnswerAnswer

    rails update:bin or rake update:bin These are the right ways that execute a rake task.

    Source: https://stackoverflow.com/questions/48040697/rails-console-not-launching-im-in-the-directory
    Author: Daniel
    Creative Commons License
    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.