@AlelxSSS

Почему не отображает тестовый сайт Rails на localhost:3000/?

Недавно поставил rvm/ruby/rails на Windows 10 с помощью Bash on Ubuntu on Windows.
Rails 5.0.1
Ruby 2.4.0

Создаю стандартный проект Rails
rails new myapp
cd myapp
bin/rails server

/home/AlelxSS/.rvm/gems/ruby-2.4.0/gems/activesupport-5.0.1/lib/active_support/xml_mini.rb:51: warning: constant ::Fixnum is deprecated
/home/AlelxSS/.rvm/gems/ruby-2.4.0/gems/activesupport-5.0.1/lib/active_support/xml_mini.rb:52: warning: constant ::Bignum is deprecated
=> Booting Puma
=> Rails 5.0.1 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
/home/AlelxSS/.rvm/gems/ruby-2.4.0/gems/activesupport-5.0.1/lib/active_support/core_ext/numeric/conversions.rb:138: warning: constant ::Fixnum is deprecated
Exiting
/home/AlelxSS/.rvm/gems/ruby-2.4.0/gems/rb-inotify-0.9.8/lib/rb-inotify/watcher.rb:74:in `initialize': Invalid argument - Failed to watch "/home/AlelxSS/.rvm/gems/ruby-2.4.0/gems/activesupport-5.0.1/lib/active_support/locale": the given event mask contains no legal events; or fd is not an inotify file descriptor. (Errno::EINVAL)
        from /home/AlelxSS/.rvm/gems/ruby-2.4.0/gems/rb-inotify-0.9.8/lib/rb-inotify/notifier.rb:190:in `new'
        from /home/AlelxSS/.rvm/gems/ruby-2.4.0/gems/rb-inotify-0.9.8/lib/rb-inotify/notifier.rb:190:in `watch'
        .....
        from bin/rails:3:in `load'
        from bin/rails:3:in `<main>'

И не открывает по адресу localhost:3000
Пишет в Chrome браузере: ERR_CONNECTION_REFUSED

Перерыл весь буржунет и опробовал, вроде как, все советы подобной проблемы, но безрезультатно.
Народ, помогите разобраться..
  • Вопрос задан
  • 639 просмотров
Решения вопроса 1
То, что не отображается сайт — это понятно. У вас рельса не заводится.

If you're using Windows Subsystem for Linux then there are currently some limitations on file system notifications that mean you should disable the spring and listen gems which you can do by running rails new blog --skip-spring --skip-listen.

guides.rubyonrails.org/getting_started.html
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы