好吧,我在Heroku上部署了一个非常基本的应用程序。我严格按照tutorial的要求进行了部署。关于这个部署的一切都是教科书式的,但是当我打开Heroku上的网站时,我得到了一条令人沮丧的模糊消息:“很抱歉,出了问题。”
当我做“英雄ps”的时候它说:
Process State Command
------- ---------- ------------------------------------
web.1 up for 13m bundle exec rails server thin -p $..
字符串
当我运行“heroku logs”时,我得到了通常的弃用消息,然后是下面的文本。但是我没有在这些日志中看到任何会导致应用程序崩溃的红旗。我错过了什么吗?
2012-06-24T12:50:50+00:00 heroku[slugc]: Slug compilation started
2012-06-24T12:51:25+00:00 heroku[api]: Release v9 created by [email protected] 2012-06-24T12:51:25+00:00 heroku[api]: Deploy ff89ee6 by [email protected]
2012-06-24T12:51:25+00:00 heroku[web.1]: State changed from up to bouncing
2012-06-24T12:51:25+00:00 heroku[web.1]: State changed from bouncing to created
2012-06-24T12:51:25+00:00 heroku[web.1]: State changed from created to starting
2012-06-24T12:51:25+00:00 heroku[slugc]: Slug compilation finished
2012-06-24T12:51:27+00:00 heroku[web.1]: Starting process with command `bundle exec rails server thin -p 37816 -e production`
2012-06-24T12:51:27+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2012-06-24T12:51:28+00:00 app[web.1]: Exiting
2012-06-24T12:51:29+00:00 heroku[web.1]: Process exited with status 0
2012-06-24T12:51:34+00:00 app[web.1]: => Booting Thin
2012-06-24T12:51:34+00:00 app[web.1]: => Rails 3.2.5 application starting in production on http://0.0.0.0:37816
2012-06-24T12:51:34+00:00 app[web.1]: => Ctrl-C to shutdown server
2012-06-24T12:51:34+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2012-06-24T12:51:34+00:00 app[web.1]: => Call with -d to detach
2012-06-24T12:51:34+00:00 app[web.1]: >> Thin web server (v1.3.1 codename Triple Espresso)
2012-06-24T12:51:34+00:00 app[web.1]: >> Maximum connections set to 1024
2012-06-24T12:51:34+00:00 app[web.1]: >> Listening on 0.0.0.0:37816, CTRL+C to stop
2012-06-24T12:51:35+00:00 heroku[web.1]: State changed from starting to up
型
2条答案
按热度按时间li9yvcax1#
你迁移你的数据库了吗,如果你有的话?这是我经常遇到的问题。:-)
字符串
ruyhziif2#
问题是我没有显示足够的记录。一旦我运行
heroku logs -n 2000
(或其他一些大的数字),它就向我显示了问题的开始