把我的ROR代码部署到了Linux上去,需要安装的东西都安装好了,执行./bin/rails s,服务器可以启动,访问的时候发现页面报错为:
Internal Server Error
(<unknown>): found a tab character that violate intendation while scanning a plain scalar at line 5 column 20
WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08) at democodes.com:3000
命令行的反馈是:
./bin/rails s
=> Booting WEBrick
=> Rails 4.1.1 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
[2014-06-19 15:55:44] INFO WEBrick 1.3.1
[2014-06-19 15:55:44] INFO ruby 2.1.2 (2014-05-08) [i686-linux]
[2014-06-19 15:55:44] INFO WEBrick::HTTPServer#start: pid=24706 port=3000
[2014-06-19 15:55:47] ERROR Psych::SyntaxError: (<unknown>): found a tab character that violate intendation while scanning a plain scalar at line 5 column 20
/usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/psych.rb:370:in `parse'
/usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/psych.rb:370:in `parse_stream'
/usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/psych.rb:318:in `parse'
/usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/psych.rb:245:in `load'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.1.1/lib/rails/application.rb:313:in `secrets'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.1.1/lib/rails/application.rb:439:in `validate_secret_key_config!'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.1.1/lib/rails/application.rb:195:in `env_config'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.1.1/lib/rails/engine.rb:510:in `call'
/usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.1.1/lib/rails/application.rb:144:in `call'
/usr/local/rvm/gems/ruby-2.1.2/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
/usr/local/rvm/gems/ruby-2.1.2/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
/usr/local/rvm/gems/ruby-2.1.2/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
/usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
/usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
/usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'