简体   繁体   English

Phusion乘客-ActiveRecord :: PendingMigrationError

[英]Phusion Passenger - ActiveRecord::PendingMigrationError

I am trying to run simple RoR application with Phusion Passenger. 我正在尝试与Phusion Passenger运行简单的RoR应用程序。 At the moment when go to localhost I see the error from subject. 在转到本地主机的那一刻,我看到了来自主题的错误。 In fact I don't have any pending migration: 实际上,我没有任何待处理的迁移:

     Status   Migration ID    Migration Name
--------------------------------------------------
   up     20150222215652  Create products
   up     20150405145349  Create carts
   up     20150405151313  Create line items
   up     20150407094606  Add quantity to line items
   up     20150409062414  Combine items in cart
   up     20150516084832  Create orders
   up     20150516084958  Add order id to line item
   up     20151005170430  Add ship date to orders
   up     20151011083822  Create users
   up     20151118212158  Add locale to products

My platform is Linux (Debian 8 Jessie 64x). 我的平台是Linux(Debian 8 Jessie 64x)。

My database is MySQL (gem 'mysql2', '~> 0.3.18'). 我的数据库是MySQL(gem'mysql2','〜> 0.3.18')。

I am using Ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux] and Rails 4.1.8. 我正在使用Ruby 2.2.1p85(2015-02-26修订版49769)[x86_64-linux]和Rails 4.1.8。

Passenger version is 5.0.22. 乘客版本是5.0.22。

Does anyone know how to solve this issue? 有谁知道如何解决这个问题? What have I missed? 我错过了什么?

Finally my issue is solved. 终于我的问题解决了。 Helped trivial Apache server restart. 帮助平凡的Apache服务器重启。 Knowing the wonderful ability of Rails to apply most of changes on the fly, I didn't even think that Apache would be needed to restart at some point. 知道Rails能够动态应用大多数更改的出色能力,我什至都不认为需要在某个时刻重新启动Apache。 I did that only after modifying its configuration. 我只有在修改其配置后才这样做。 Anyway thanks to all who tried to help me. 无论如何,感谢所有试图帮助我的人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将Phusion Passenger从3.0.11更新到4.0.10会导致ActiveRecord :: StatementInvalid查询期间与MySQL服务器的连接断开 - Update Phusion Passenger from 3.0.11 to 4.0.10 causes ActiveRecord::StatementInvalid Lost connection to MySQL server during query 如何让Phusion Passenger,MySQL和Rails在制作中发挥出色 - How to get Phusion Passenger, MySQL and Rails to play nicely in production 尝试从Rails应用程序中的远程MySql数据库访问数据时出现ActiveRecord :: PendingMigrationError - ActiveRecord::PendingMigrationError when trying to access data from remote MySql database in a Rails App Rails应用程序错误-ActiveRecord :: PendingMigrationError迁移正在等待; 运行“ rake db:migrate RAILS_ENV = development”来解决此问题 - Rails app error - ActiveRecord::PendingMigrationError Migrations are pending; run 'rake db:migrate RAILS_ENV=development' to resolve this issue 在 Ubuntu 上运行 Rails 服务器时出现 PendingMigrationError - Getting PendingMigrationError while running the Rails server on Ubuntu 乘客未到达MySql - Passenger not reaching MySql 乘客错误“库未加载” - Passenger error “library not loaded” 乘客桌有很多冗余 - Lot of redundancy in passenger table Activerecord CodeIgniter 3 - Activerecord CodeIgniter 3 的ActiveRecord :: InvalidForeignKey - ActiveRecord::InvalidForeignKey
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM