前兩天redmine都跑的好好的,但是今天服務器斷電之後,重啓點擊項目後一直出現這個問題:
說milestones表不存在。結果找了好久,
最終Google到了一個帖子:https://github.com/samchen2009/ekanban/issues/36,
執行這句就好了:rake redmine:plugins:migrate RAILS_ENV=production
Processing by ProjectsController#show as HTML
Parameters: {"id"=>"bms-e"}
Current user: admin (id=1)
Rendered projects/_members_box.html.erb (5.8ms)
Rendered plugins/advanced_roadmap/app/views/hooks/_milestones.html.erb (2.5ms)
Rendered projects/show.html.erb within layouts/base (18.7ms)
Completed 500 Internal Server Error in 112ms
ActionView::Template::Error (Mysql2::Error: Table 'redmine_db.milestones' doesn't exist: SHOW FULL FIELDS FROM `milestones`):
1: <%- if [email protected]? -%>
2: <h3><%= l(:label_milestone_plural) %></h3>
3: <%- @project.milestones.sort.each do |milestone| -%>
4: <%= link_to_milestone(milestone) %><br />
5: <%- end -%>
6: <%- end -%>
lib/redmine/hook.rb:111:in `block in render_on'
lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
lib/redmine/hook.rb:61:in `each'
lib/redmine/hook.rb:61:in `block in call_hook'
lib/redmine/hook.rb:58:in `tap'
lib/redmine/hook.rb:58:in `call_hook'
lib/redmine/hook.rb:158:in `call_hook'
app/views/projects/show.html.erb:90:in `block in _app_views_projects_show_html_erb___3168151187052905121_45706940'
app/helpers/application_helper.rb:1149:in `content_for'
app/views/projects/show.html.erb:79:in `_app_views_projects_show_html_erb___3168151187052905121_45706940'
app/controllers/projects_controller.rb:163:in `show'