I'm trying to push my app up to the production env on heroku from my dev environment. Ive transferred all my code using
git push heroku master
Now I need to push my database and Im trying this
heroku db:push
But its failing and Im getting this message at console.
ruby-1.9.3-p194@app0907api @~/Documents/myapp06
>heroku db:push
/Users/hj/.rvm/gems/ruby-1.9.3-p194@app0907api/gems/sqlite3-1.3.6/lib/sqlite3/sqlite3_native.bundle: [BUG] Segmentation fault
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
This is a bit strange since my app uses postgres for dev and production and test, I haven't used sqlite at all neither have I installed any gems for sqlite3
What could be going wrong?
source 'https://rubygems.org/'
gem 'rails', '3.2.8'
gem 'rails-api'
gem 'pg'
gem 'taps'
gem 'thin'
gem 'foreman'
gem 'rabl'
gem 'paperclip', '~>3.2.0'
gem 'aws-sdk', '~>1.3.4'
group :development do
gem 'annotate', ">=2.5.0"
gem 'debugger'
end
SOLUTION FOUND:
Typed in the following line on my terminal console:
gem install heroku
sudo gem install taps
this allowed me to run the command:
heroku db:push
...but now, while sending the db, I'm getting this error:
Saving session to push_201209202159.dat..
!!! Caught Server Exception
HTTP CODE: 500
Taps Server Error: PGError: ERROR: time zone displacement out of range: "2012-09-18 12:00:00.000000+5894853600"
LINE 1: ...ated_at") VALUES (45, '37.785834', '-122.406417', '2012-09-1...