FATAL: role “root” does not exist

前端 未结 3 1863
后悔当初
后悔当初 2021-01-22 07:24

I have started to learn using heroku and i was trying to execute bundle exec rake db:create db:migrate command, i have encountered the following errors,

         


        
3条回答
  •  终归单人心
    2021-01-22 07:59

    If u are studying rails tutorial and you want to run a local server,you should have gem 'sqlite3' in gemfile,but if u want to push it to heroku you must replace gem 'sqlite3' with gem 'pg'.Or when running local server you can have them both,but when you push to heroku detele it because it's not suported.

提交回复
热议问题