I am trying to hit the hostname provided by fly on port 3000 but to no avail. Server is not responding with a response. This is my very first docker app deploy.
I’m not sure exactly what the app is doing but normally what happens is the port number referenced in the fly.toml is the internal one. Node apps often use port 3000. Sometimes you’ll see 8080.
Since it lists an http service, the outside world will access it on port 80 (http) or port 443 (https).
So … you shouldn’t need to use the port. You load e.g https://app-name.fly.dev in your browser, with no port appended.
If you don’t get a response, try flyctl logs to check the app is running.
Hi! I am very inexperienced with this. Can you be a little more descriptive please. I dont have a specific port, Whichever works fine. Also made a typo on the local dev docker command, its -p3000:3000 and not -p3000:0000.
@shyanroy31 Hi, of course we don’t know what your app is doing (do you need a http URL etc) however normally you can simply request your app using its URL. That’s provided by Fly. It has your app’s name as its subdomain. So in your case, that would be:
https://flipkart-scraper-api.fly.dev
Is that URL what you are after? You don’t need to append any port to that.
Unless, as @rubys says, you actually do … and don’t in fact want a http URL for the app.
But in local dev enviroment I was getting data in the result attribute. I might be wrong but I am guessing this is because of the the server not able to make outbound request. However I made a curl req from the console and able to successfully make a outbound req. Not really sure what might be the issue here.
Once thing to add . In my docker file env is set as http://localhost:3000. Since the deployment would be different here, using