ruby-on-rails - 将 Rails 应用程序部署到 heroku 错误(sqlite3->Postgresql)?

标签 ruby-on-rails sqlite postgresql deployment heroku

<分区>

当我在 heroku 上对我的 Rails 应用程序部署一些更改时,我突然收到“应用程序错误”。不确定为什么,我找不到合适的解决方案。

这是日志:

   2012-10-22T20:05:26+00:00 heroku[slugc]: Slug compilation started
   2012-10-22T20:06:54+00:00 heroku[web.1]: State changed from up to starting
   2012-10-22T20:06:54+00:00 heroku[slugc]: Slug compilation finished
   2012-10-22T20:06:56+00:00 heroku[web.1]: Starting process with command `bundle e
   xec rails server -p 28612`
   2012-10-22T20:06:56+00:00 heroku[web.1]: Stopping all processes with SIGTERM
   2012-10-22T20:06:57+00:00 app[web.1]:   /usr/local/lib/ruby/1.9.1/webrick/server
   .rb:90:in `select'
   2012-10-22T20:06:57+00:00 app[web.1]: [2012-10-22 20:06:57] ERROR SignalExceptio
   n: SIGTERM
   2012-10-22T20:07:06+00:00 heroku[web.1]: Stopping remaining processes with SIGKI
   LL
   2012-10-22T20:07:06+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least on
   e process failed to exit within 10 seconds of SIGTERM
   2012-10-22T20:07:08+00:00 heroku[web.1]: Process exited with status 137
   2012-10-22T20:07:57+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process
   failed to bind to $PORT within 60 seconds of launch
   2012-10-22T20:07:57+00:00 heroku[web.1]: Stopping process with SIGKILL
   2012-10-22T20:07:58+00:00 heroku[web.1]: State changed from starting to crashed
   2012-10-22T20:07:58+00:00 heroku[web.1]: State changed from crashed to starting
   2012-10-22T20:07:58+00:00 heroku[web.1]: Process exited with status 137
   2012-10-22T20:08:01+00:00 heroku[web.1]: Starting process with command `bundle e
   xec rails server -p 26859`
   2012-10-22T20:09:01+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process
   failed to bind to $PORT within 60 seconds of launch
   2012-10-22T20:09:01+00:00 heroku[web.1]: Stopping process with SIGKILL
   2012-10-22T20:09:02+00:00 heroku[web.1]: Process exited with status 137
   2012-10-22T20:09:02+00:00 heroku[web.1]: State changed from starting to crashed
   2012-10-22T20:09:27+00:00 heroku[router]: Error H10 (App crashed) -> GET www.thr
   illengine.com/ dyno= queue= wait= service= status=503 bytes=`

在开发中它工作正常。

更新:

40 分钟后一切恢复正常并正常工作。奇怪,考虑到我真的什么都没做。 还有其他人遇到类似的事情吗?

最佳答案

  1. gem文件是否有pg gem?

  2. 您是否在生产数据库上迁移了您的数据库?

  3. 部署是否出现任何错误?

关于ruby-on-rails - 将 Rails 应用程序部署到 heroku 错误(sqlite3->Postgresql)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13019956/

相关文章:

ruby-on-rails - 如何为查询定义命名空间

ruby-on-rails - 我不小心删除了我的 Gemfile。我可以恢复吗?

ruby-on-rails - 更好的错误 Gem 无法在本地浏览器中运行,没有可见的错误

android - SecurityException,无法显式添加 : myPakcageName 类型的帐户

sql - 错误 : invalid input syntax for integer: ""

MySQL 到 PostgreSQL 转换和数据同步

postgresql - 使用 Aurora postgres serverless 在 AWS RDS DataService 中转义字符串的最佳实践

ruby-on-rails - 可以加入Rails Action Text Model

sqlite - Docker:如何将sqlite数据库更改持久保存到db文件?

iphone - 奇怪的SQLite行为