octopress无法路由公众

ndr*_*x42 2 deployment heroku ruby-on-rails-3

我一直在努力学习章鱼,所以我需要在heroku上部署它.我在最后一点做了,但我没有看到我的网站.

我跑的时候

heroku open
Run Code Online (Sandbox Code Playgroud)

我在网络浏览器上遇到这个问题

对不起,我找不到/

因为

  not_found do
    send_sinatra_file('404.html') {"Sorry, I cannot find #{request.path}"}
  end
Run Code Online (Sandbox Code Playgroud)

我该如何解决?

小智 16

从命令行打开.gitignore列表(位于您的仓库中)并删除以下行public.

然后rake generate将其推送到Heroku.

应该这样做.