#trouble exposing a go app

32 messages · Page 1 of 1 (latest)

grand pumice
#

my app is listening on 0.0.0.0:$PORT, the port is exposed in the dockerfile, and it's working locally but it seems it isn't exposed on railway.

covert robinBOT
#

Project ID: 5c0858c1-2ed6-476a-a131-80a111e5c11a

glacial basinBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

grand pumice
#

5c0858c1-2ed6-476a-a131-80a111e5c11a

vast geyser
#

oh my specialty

grand pumice
#

yes

vast geyser
#

what kind of go app? chi?

grand pumice
#

yes

vast geyser
#

do show me the code that listens

grand pumice
vast geyser
#

funky

#

":" + os.Getenv("PORT")

grand pumice
#

yes i know

#

i just like using sprintf

#

i'll try that though

vast geyser
#

Sprintf is pretty neat

grand pumice
#

yes

#

now it works

#

interesting

vast geyser
#

hehe

grand pumice
#

what changed

vast geyser
#

who knows

grand pumice
#

okay lmfao

vast geyser
#

not me, all I know if what does work

#

not specifying the IP just works, even for communication over the private ipv6 only network

grand pumice
#

this was in my other app

#

and it works on railway

#

idk at least it works now

vast geyser
grand pumice
#

ah

vast geyser
#

alright all good?