我是用本地开发环境安装的,不是 docker。
就是 Rails 的标准安装流程。
第一个问题:进入控制台管理,点击 wiki 报错,大意是 pages 表不存在,我手动执行了 rails homeland_wiki:install:migrations
然后 migrate,解决了。
第二个问题:在创建第一个话题后,ElasticSearch 报错
[404] {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"topics","index_uuid":"_na_","index":"topics"}],"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"topics","index_uuid":"_na_","index":"topics"},"status":404}
这个应该是 ES 的索引结构没有建好,但是不知道怎么创建,有没有命令?
以下是 log
Started GET "/system/letter_avatars/2/D/149_114_207/64.png" for ::1 at 2017-03-17 21:38:50 +0800
Processing by HomeController#error_404 as PNG
Parameters: {"path"=>"system/letter_avatars/2/D/149_114_207/64"}
(1.0ms) SELECT COUNT(*) FROM "new_notifications" WHERE "new_notifications"."user_id" = 2 AND "new_notifications"."read_at" IS NULL
DEPRECATION WARNING: `:nothing` option is deprecated and will be removed in Rails 5.1. Use `head` method to respond with empty response body. (called from block (2 levels) in render_optional_error_file at /Users/daqing/v8os/products/homeland/app/controllers/application_controller.rb:73)
Rendering text template
Rendered text template (0.0ms)
Completed 404 Not Found in 7ms (Views: 1.1ms | ActiveRecord: 1.0ms)
默认配置是 localhost:3000,如果你 rails server 不是用 3000 端口起的话,就会找不到图片。但图片其实是存在的。
图标问题是否有解决?
我在 mac 下 imagemagick-7.0.5-4 ghostscript-9.21 letter_avatar (0.3.2) 也是这个问题,无法生成小图标
跟了一下 letter_avatar 的代码,Mac 下的 imagemagick-7.0.5-4 不支持这个
-interpolate bicubic
去除即可。不知道你那边是什么情况,可以把环境更详细发出来
添加一个 model ,接着执行 rails db:migrate 会提示 post 表格 已经存在。你们遇到这种问题么? (本地安装) 接着就报错无法运行了