kdstarter/blog-eye

rake routes error

Closed this issue · 2 comments

➜ blog-eye git:(master) ✗ rake routes
rake aborted!
NoMethodError: undefined method domain' for nil:NilClass /Users/zhu/work/rails_projects/github.com/blog-eye/config/application.rb:28:inclass:Application'
/Users/zhu/work/rails_projects/github.com/blog-eye/config/application.rb:10:in <module:BlogEye>' /Users/zhu/work/rails_projects/github.com/blog-eye/config/application.rb:9:in<top (required)>'
/Users/zhu/work/rails_projects/github.com/blog-eye/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)

需要运行ruby setup.rb脚本,它会拷贝config/settings.yml.sample到config/settings.yml,然后更改sttings.yml的配置为适合你的,其中就有个domain参数的配置。

啊原来如此!新手学习中!