taps migration failing from sqlite to postgres rails4, ruby 1.9.3

后端 未结 3 659
萌比男神i
萌比男神i 2021-01-13 09:07

I am trying to migrate my Rails app to Postgresql for heroku however i can\'t get taps to get the data from my SQLite3 database, here is what i have tried:

C

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-13 09:25

    Thank you @DavidKarlsson, just adding to your answer, there is no need to uninstall the existing rack. Following the recommendation of @hak8or in https://github.com/ricardochimal/taps/issues/128 I used a Gemfile to ensure usage of rack version 1.0.1. But after I installed I had various versions of rack

    $ gem uninstall 'rack'
    
    Select gem to uninstall:
    1. rack-1.0.1
    2. rack-1.4.4
    3. rack-1.4.5
    4. rack-1.5.2
    5. All versions
    

    and did not want to uninstall them, because that could affect other projects I have in the same machine. When I run taps it would use the latest, rack-1.5.2, so what I did was to run taps using bundle exec, in my case

    bundle exec taps server sqlite://db/development.sqlite3 root root
    

    Hope it helps!

提交回复
热议问题