我做了一个简单的rails网站,推送到git并通过heroku进行部署。唯一显示的页面是主页。这里是路线文件。为什么只有在我的网站上显示部署在heroku上的主页?
Rails.application.routes.draw do
root 'handm#home'
get 'handm/about'
get 'handm/contact'
get 'handm/industries'
get 'handm/languages'
get 'handm/services'
end
什么可能导致页面“不存在”?谢谢你的帮助。
运行“heroku logs --tail”然后查看该页面,它应该向您显示终端中的错误,如果您可以' t调试,然后粘贴部分日志,第一个10-20行应该没问题。 –
@RockwellRice。 “heroku日志 - 尾巴”的第几行结果 – Owen
我想你的应用程序很好,现在的网址是“/ handm/about”而不是“/ about”,我敢打赌你就是在看什么。这是对的?http://afternoon-tor-17057.herokuapp.com/handm/about。 –