Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku fail to migrate due to ECONNREFUSED?

When I tried to heroku run rake db:migrate, I was told that connection cannot be made. I'm using postgres locally. I can see my site loaded properly, but I can't access my models. How to fix this?

Rexs-MacBook-Pro:portfolio Rex$ heroku run rake db:migrate
Running rake db:migrate on fathomless-mesa-1536... up, run.4069
 ▸    ECONNREFUSED: connect ECONNREFUSED 50.19.103.36:5000
like image 458
Rex Avatar asked Nov 02 '15 21:11

Rex


1 Answers

I have magically thought of why and it worked. Basically, my school's internet's firewall blocked my connection to heroku. After I have switched to my own mobile date it works like it should be!

like image 169
Rex Avatar answered Oct 23 '22 19:10

Rex