1
resposta

Não consigo rodar o server.

Segue abaixo o que aparece quando tento rodar o 'rails server'

rails server

=> Booting WEBrick
=> Rails 4.2.1 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
/home/igormattos/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.1/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated
/home/igormattos/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.1/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated
Exiting
/home/igormattos/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.1/lib/active_support/core_ext/numeric/conversions.rb:124:in `block (2 levels) in <class:Numeric>': stack level too deep (SystemStackError)
    from /home/igormattos/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
    from /home/igormattos/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
    from /home/igormattos/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
    from /home/igormattos/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
    from /home/igormattos/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
    from /home/igormattos/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
    from /home/igormattos/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
    from /home/igormattos/.rvm/gems/ruby-2.4.1/gems/activesupport-4.2.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
     ... 4046 levels...
    from /home/igormattos/.rvm/gems/ruby-2.4.1/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
    from /home/igormattos/.rvm/gems/ruby-2.4.1/gems/railties-4.2.1/lib/rails/commands.rb:17:in `<top (required)>'
    from bin/rails:9:in `require'
    from bin/rails:9:in `<main>'

O que posso fazer para conseguir rodar o server e continuar com a aula?

1 resposta

Oi Igor, me parece que o rais 4.2 não funciona com o ruby 2.4. minha recomendação é usar uma versão mais antiga do ruby, como a 2.2.