I'm trying to invoke a HTTP endpoint in my deployed Heroku app with Heroku Scheduler, which basically runs commands on Heroku bash
at a fixed rate.
When I run $ heroku run bash
, I can read my port with echo $PORT
(let's say 5555). However when I try to access my webpage using curl http://localhost:5555
, it does not work.
What is the way to reach to the app within Heroku bash without using the app name?