Comments (5)
这个错误日志和你看到的错误可能不是同一个。你再翻翻对应你访问路径的那条日志。
from writings.
I, [2013-12-21T15:15:02.602433 #13301] INFO -- : Started GET "/" for 192.168.12.105 at 2013-12-21 15:15:02 +0000
I, [2013-12-21T15:15:02.605172 #13301] INFO -- : Processing by Site::ArticlesController#index as HTML
I, [2013-12-21T15:15:02.608524 #13301] INFO -- : Rendered errors/404.html.slim within layouts/error (0.2ms)
I, [2013-12-21T15:15:02.609674 #13301] INFO -- : Completed 404 Not Found in 4ms (Views: 2.2ms)
I, [2013-12-21T15:15:02.896972 #13301] INFO -- : Started GET "/stylesheets/error.css" for 192.168.12.105 at 2013-12-21 15:15:02 +0000
I, [2013-12-21T15:15:02.898310 #13301] INFO -- : Processing by ErrorsController#not_found as CSS
I, [2013-12-21T15:15:02.899436 #12460] INFO -- : Started GET "/images/favicon.png" for 192.168.12.105 at 2013-12-21 15:15:02 +0000
I, [2013-12-21T15:15:02.901036 #12460] INFO -- : Processing by ErrorsController#not_found as PNG
I, [2013-12-21T15:15:02.901429 #13301] INFO -- : Parameters: {"a"=>"stylesheets/error"}
I, [2013-12-21T15:15:02.901558 #12460] INFO -- : Parameters: {"a"=>"images/favicon"}
I, [2013-12-21T15:15:02.902595 #12460] INFO -- : Missing template errors/404 with {:locale=>[:en, :"zh-CN", :zh], :formats=>[:png], :handlers=>[:erb, :builder, :raw, :ruby, :slim, :jbuilder, :coffee]}. Searched in:
- "/vagrant_code/rails/writings/app/views"
- "/home/vagrant/.rvm/gems/ruby-2.0.0-p247/gems/kaminari-0.14.1/app/views"
- "/vagrant_code/rails/writings"
- "/"
I, [2013-12-21T15:15:02.903529 #12460] INFO -- : Completed 500 Internal Server Error in 2ms
I, [2013-12-21T15:15:02.904163 #13301] INFO -- : Missing template errors/404 with {:locale=>[:en, :"zh-CN", :zh], :formats=>[:css], :handlers=>[:erb, :builder, :raw, :ruby, :slim, :jbuilder, :coffee]}. Searched in:
- "/vagrant_code/rails/writings/app/views"
- "/home/vagrant/.rvm/gems/ruby-2.0.0-p247/gems/kaminari-0.14.1/app/views"
- "/vagrant_code/rails/writings"
- "/"
I, [2013-12-21T15:15:02.904804 #13301] INFO -- : Completed 500 Internal Server Error in 2ms
F, [2013-12-21T15:15:02.906955 #12460] FATAL -- :
ActionView::MissingTemplate (Missing template errors/500 with {:locale=>[:en, :"zh-CN", :zh], :formats=>[:png], :handlers=>[:erb, :builder, :raw, :ruby, :slim, :jbuilder, :coffee]}. Searched in:
- "/vagrant_code/rails/writings/app/views"
- "/home/vagrant/.rvm/gems/ruby-2.0.0-p247/gems/kaminari-0.14.1/app/views"
- "/vagrant_code/rails/writings"
- "/"
):
app/controllers/application_controller.rb:28:inrender_500' app/middleware/conditional_ssl.rb:9:in
call'
F, [2013-12-21T15:15:02.909519 #13301] FATAL -- :
ActionView::MissingTemplate (Missing template errors/500 with {:locale=>[:en, :"zh-CN", :zh], :formats=>[:css], :handlers=>[:erb, :builder, :raw, :ruby, :slim, :jbuilder, :coffee]}. Searched in:
- "/vagrant_code/rails/writings/app/views"
- "/home/vagrant/.rvm/gems/ruby-2.0.0-p247/gems/kaminari-0.14.1/app/views"
- "/vagrant_code/rails/writings"
- "/"
):
app/controllers/application_controller.rb:28:inrender_500' app/middleware/conditional_ssl.rb:9:in
call'
I, [2013-12-21T15:15:03.199560 #13301] INFO -- : Started GET "/favicon.png" for 192.168.12.105 at 2013-12-21 15:15:03 +0000
I, [2013-12-21T15:15:03.201216 #13301] INFO -- : Processing by ErrorsController#not_found as PNG
I, [2013-12-21T15:15:03.201889 #13301] INFO -- : Parameters: {"a"=>"favicon"}
I, [2013-12-21T15:15:03.202926 #13301] INFO -- : Missing template errors/404 with {:locale=>[:en, :"zh-CN", :zh], :formats=>[:png], :handlers=>[:erb, :builder, :raw, :ruby, :slim, :jbuilder, :coffee]}. Searched in:
- "/vagrant_code/rails/writings/app/views"
- "/home/vagrant/.rvm/gems/ruby-2.0.0-p247/gems/kaminari-0.14.1/app/views"
- "/vagrant_code/rails/writings"
- "/"
I, [2013-12-21T15:15:03.204040 #13301] INFO -- : Completed 500 Internal Server Error in 2ms
F, [2013-12-21T15:15:03.205966 #13301] FATAL -- :
ActionView::MissingTemplate (Missing template errors/500 with {:locale=>[:en, :"zh-CN", :zh], :formats=>[:png], :handlers=>[:erb, :builder, :raw, :ruby, :slim, :jbuilder, :coffee]}. Searched in:
- "/vagrant_code/rails/writings/app/views"
- "/home/vagrant/.rvm/gems/ruby-2.0.0-p247/gems/kaminari-0.14.1/app/views"
- "/vagrant_code/rails/writings"
- "/"
):
app/controllers/application_controller.rb:28:inrender_500' app/middleware/conditional_ssl.rb:9:in
call'
I, [2013-12-21T15:15:03.507966 #13301] INFO -- : Started GET "/favicon.png" for 192.168.12.105 at 2013-12-21 15:15:03 +0000
I, [2013-12-21T15:15:03.509288 #13301] INFO -- : Processing by ErrorsController#not_found as PNG
I, [2013-12-21T15:15:03.509565 #13301] INFO -- : Parameters: {"a"=>"favicon"}
I, [2013-12-21T15:15:03.510184 #13301] INFO -- : Missing template errors/404 with {:locale=>[:en, :"zh-CN", :zh], :formats=>[:png], :handlers=>[:erb, :builder, :raw, :ruby, :slim, :jbuilder, :coffee]}. Searched in:
- "/vagrant_code/rails/writings/app/views"
- "/home/vagrant/.rvm/gems/ruby-2.0.0-p247/gems/kaminari-0.14.1/app/views"
- "/vagrant_code/rails/writings"
- "/"
I, [2013-12-21T15:15:03.510812 #13301] INFO -- : Completed 500 Internal Server Error in 1ms
F, [2013-12-21T15:15:03.512464 #13301] FATAL -- :
ActionView::MissingTemplate (Missing template errors/500 with {:locale=>[:en, :"zh-CN", :zh], :formats=>[:png], :handlers=>[:erb, :builder, :raw, :ruby, :slim, :jbuilder, :coffee]}. Searched in:
- "/vagrant_code/rails/writings/app/views"
- "/home/vagrant/.rvm/gems/ruby-2.0.0-p247/gems/kaminari-0.14.1/app/views"
- "/vagrant_code/rails/writings"
- "/"
):
app/controllers/application_controller.rb:28:inrender_500' app/middleware/conditional_ssl.rb:9:in
call'
这个是访问的全部日志。
from writings.
I, [2013-12-21T15:15:02.602433 #13301] INFO -- : Started GET "/" for 192.168.12.105 at 2013-12-21 15:15:02 +0000
I, [2013-12-21T15:15:02.605172 #13301] INFO -- : Processing by Site::ArticlesController#index as HTML
I, [2013-12-21T15:15:02.608524 #13301] INFO -- : Rendered errors/404.html.slim within layouts/error (0.2ms)
I, [2013-12-21T15:15:02.609674 #13301] INFO -- : Completed 404 Not Found in 4ms (Views: 2.2ms)
如果你访问的是网站首页(而不是个人首页),而这里显示路由访问到了个人首页,说明 config/app_config.yml 里面设置的 host 没有对应网站主域名。
from writings.
这样个人域名会变成 username.www.writings.dev 哦,可以去掉 www 或者自己改掉这一块代码。
from writings.
我已经改回来了,原来是config/app_config.yml里的host,服务器host,访问客户端host 指向要是同一个域名。
from writings.
Related Issues (6)
- 请教 login_as @user里的 login_as 方法用啥来实现的 HOT 1
- 有关用户注册…… HOT 2
- 跑起来之后,只能通过localhost访问,怎么设置? HOT 2
- 编辑器的引号,怎么结束? HOT 3
- 想把这个编辑器独立出来,该怎么做 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from writings.