Download .sql file to Postgres heroku

0

I am implementing a larvel project, this already has a populated database. Now I need to deploy this project in Heroku but I can not make the migration from my .sql file to postgres Heroku. I have tried with the documentation but the single installation gives errors and I can not continue. Could you help me by guiding me what is the best way to do it?

This is one of the errors:

An error occurred while installing pg (0.21.0), and Bundler cannot
continue.
Make sure that 'gem install pg -v '0.21.0'' succeeds before bundling.
    
asked by Cesar Augusto 26.07.2017 в 18:56
source

1 answer

0

To solve this problem I followed the following steps:

download postgresql library:

  

link

then run replacing "x.y" with its installation values:

$ sudo PATH=$PATH:/Library/PostgreSQL/x.y/bin gem install pg

can also use:

$ sudo PATH=$PATH:/Library/PostgreSQL/x.y/bin bundle install

and that's it, you can continue with the heroku documentation

Source:

  

link

    
answered by 26.07.2017 / 19:26
source