Reputation: 139
I have created REST API
in ruby on rails and for api calling I have used
Faraday as a REST client
. my application is working totally fine on localhost:3000.
but when I deployed it to heroku it giving me an error
Faraday::ConnectionFailed (connection refused: :80)
Upvotes: 0
Views: 3013
Reputation: 196
There should be a .env
file in your project which will be holding the port number . You need to configure it and point it to the port where heroku is using .
Upvotes: 0