首页 > heroku 如何部署 rails4项目

heroku 如何部署 rails4项目

按照网上给的教程,一步步执行 1. heroku login 2. heroku create 3. git psuh heroku master

都顺利完成了,结果访问页面还是提示:

An error occurred in the application and your page could not be served. Please try again in a few moments.

If you are the application owner, check your logs for details.

rails 里面我就创建了一个controller -> action 平且设定路由了。 database.yml 和gemfile 里面都修改为 pg 了。


看看这个: http://ruby-china.org/topics/10813


Rais tutorial 第一章有写 heroku 部署,可能有 gem 缺失。 http://railstutorial-china.org/chapter1.html


查看下heroku的logs

heroku logs -t
【热门文章】
【热门文章】