Heroku db: push not working using gem taps

I use gem 'sqlite3', '1.3.5' on dev and gem 'pg', '0.12.2' for the product. ruby version of ruby 1.9.3p125 (2012-02-16) [i386-mingw32]

for the training application is evolving.

I installed taps gem and tried heroku db: push and this is what I got.

 HTTP CODE: 500 Taps Server Error: PGError: ERROR: time zone displacement out of range: "2012-0 5-06 12:00:00.000000+5894529600" 

Here is the hero ’s magazine . What is the solution?

FYI: db: pull works very well. I also checked other similar messages, but at the moment I could not find a solution in any of them.

+4
source share
1 answer

This is due to a crane bug with Ruby 1.9.3.

The solution, I believe, is to switch to Ruby 1.9.2 on your local computer before clicking on the db files. Like this:

 rvm use ruby-1.9.2 heroku db:push rvm use ruby-1.9.3 

I do my db: pushes this way and it works for me.

Please note that the ruby ​​version on your heroku application does not matter. The problem occurs if you use locally 1.9.3.

Here's a link to the question on github:

https://github.com/ricardochimal/taps/issues/92

+4
source

Source: https://habr.com/ru/post/918694/


All Articles