简体   繁体   English

我无法启动Rails服务器

[英]I can't get rails server to start

I'm new to ROR and I'm building a new app. 我是ROR的新手,正在构建一个新的应用程序。 I wanted to restart the server, but all of a sudden this is the message I get: 我想重新启动服务器,但是突然间我收到了以下消息:

user@ubuntu:~$ cd blogger user @ ubuntu:〜$ CD博客

user@ubuntu:~/blogger$ rails s user @ ubuntu:〜/ blogger $ rails

=> Booting WEBrick =>正在启动WEBrick

=> Rails 4.1.1 application starting in development on => Run rails server -h for more startup options => Rails 4.1.1应用程序正在开发中开始=>运行rails server -h以获取更多启动选项

=> Notice: server is listening on all interfaces (0.0.0.0). =>注意:服务器正在所有接口(0.0.0.0)上侦听。 Consider using <127.0.0.1 (--binding option)> 考虑使用<127.0.0.1(--binding选项)>

=> Ctrl-C to shutdown server Exiting => Ctrl-C关闭服务器退出

/home/user/.rvm/gems/ruby-2.1.2/gems/activesupport4.1.1/lib/active_support/ /home/user/.rvm/gems/ruby-2.1.2/gems/activesupport4.1.1/lib/active_support/

dependencies.rb:241:in `load': /home/user/blogger/config/routes.rb:60: syntax error, encies.rb:241:在`load'中:/home/user/blogger/config/routes.rb:60:语法错误,

unexpected keyword_end, expecting end-of-input (SyntaxError) from /home/user/.rvm/gems/ruby-2.1.2/gems/activesupport- 意外的keyword_end,期望来自/home/user/.rvm/gems/ruby-2.1.2/gems/activesupport-的输入结束(SyntaxError)

4.1.1/lib/active_support/dependencies.rb:241:in `block in load' from /home/user/.rvm/gems/ruby-2.1.2/gems/activesupport- 4.1.1 / lib / active_support / dependencies.rb:241:在/home/user/.rvm/gems/ruby-2.1.2/gems/activesupport-

Well, it says you have a syntax error in your config/routes.rb. 好吧,它表明您在config / routes.rb中存在语法错误。 Check the brackets and "do end" blocks in this file. 检查此文件中的方括号和“结束”块。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM