在读《Learn Python In Hard Way》的时候,发现作者谈到一个很有趣的事情,在做一些有趣的事情之前做的无聊的事情叫做yak shaving,牦牛剪毛。类似学习一门语言或技术前的安装,配置等等东西。
以前听一位师兄说如果你搞web的话,可以去学习下ROR。查了下发现是Ruby on rails,作为它的作者——
at=error code=H10 desc="App crashed" method=GET path=/ host=xxx.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes=
2016-02-29T05:18:58.740439+00:00 app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.1/lib/sass/rails/helpers.rb:11:in `<top (required)>': uninitialized constant Sass::Script (NameError) 2016-02-29T05:18:58.740461+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.1/lib/sass/rails.rb:8:in `require' 2016-02-29T05:18:58.740463+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.1/lib/sass/rails.rb:8:in `<top (required)>' 2016-02-29T05:18:58.740463+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.1/lib/sass-rails.rb:1:in `require' 2016-02-29T05:18:58.740464+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.1/lib/sass-rails.rb:1:in `<top (required)>' 2016-02-29T05:18:58.740465+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `require' 2016-02-29T05:18:58.740466+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `block (2 levels) in require' 2016-02-29T05:18:58.740466+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `each' 2016-02-29T05:18:58.740469+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `block in require' 2016-02-29T05:18:58.740470+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `each' 2016-02-29T05:18:58.740470+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `require' 2016-02-29T05:18:58.740471+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler.rb:134:in `require' 2016-02-29T05:18:58.740472+00:00 app[web.1]: from /app/config/application.rb:7:in `<top (required)>' 2016-02-29T05:18:58.740473+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `require' 2016-02-29T05:18:58.740473+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `block in server' 2016-02-29T05:18:58.740474+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `tap' 2016-02-29T05:18:58.740475+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `server' 2016-02-29T05:18:58.740475+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!' 2016-02-29T05:18:58.740476+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands.rb:17:in `<top (required)>' 2016-02-29T05:18:58.740477+00:00 app[web.1]: from bin/rails:9:in `require' 2016-02-29T05:18:58.740477+00:00 app[web.1]: from bin/rails:9:in `<main>' 2016-02-29T05:18:59.458586+00:00 heroku[web.1]: State changed from starting to crashed 2016-02-29T05:18:59.444429+00:00 heroku[web.1]: Process exited with status 1
/app/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.1/lib/sass/rails/helpers.rb:11:in `<top (required)>': uninitialized constant Sass::Script (NameError)可以猜测应该是gem文件中的sass-rails版本的问题。我突然想起了这个细节。