problem with the ruby on rails server

0

hello friends I have ruby and ruby on rails installed and it works correctly but the server does not work with the "rails server" command but with "gem server"

error message:

    root@sommer0123-AO532h:/home/sommer0123/Escritorio/blogruby/blog# rails server
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in 'require': cannot load such file -- bundler/setup (LoadError)
    from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in 'require'
    from /home/sommer0123/Escritorio/blogruby/blog/config/boot.rb:3:in ''
    from bin/rails:3:in 'require_relative'
    from bin/rails:3:in ''
root@sommer0123-AO532h:/home/sommer0123/Escritorio/blogruby/blog# gem server
Server started at http://0.0.0.0:8808
Server started at http://[::]:8808

my doubt is there would be a problem with the web app in production?

note usage: ubuntu desktop 16.2 tls

    
asked by simon 15.02.2017 в 03:26
source

2 answers

1

Try to run in the terminal:

bundle install

It may have failed when you ran it for the first time or you ran it with sudo.

    
answered by 15.02.2017 / 14:17
source
0

Try with

bundle exec rails s
    
answered by 15.02.2017 в 17:25