#my node js api isn’t getting a domain

23 messages · Page 1 of 1 (latest)

bold knot
#

Idk why

ocean prawnBOT
#

Project ID: fec32241-499a-4c5b-af0d-826fa71978bb

bold knot
#

fec32241-499a-4c5b-af0d-826fa71978bb

#

Like I did this already:

app.listen(port, "0.0.0.0", function () {
console.log(Server running at http://localhost:${port});
});

past otter
#

To give your API a domain, you'd want to go to service settings and generate a domain

past otter
bold knot
#

Top of my script

#

It’s just port = 3000

past otter
bold knot
#

Why so? I can use an env if I need to

past otter
#

Railway exposes a specific port when you deploy your app and routes requests from your domain to that port, for your app to receive those requests it needs to be listening to the port that railway exposes for your app, that port being in the PORT variable

bold knot
past otter
#

What is zsign, is it a binary in your repo?

supple turret
#

@bold knot ping for visibility

bold knot
#

you input an apple development certificate and it signs the app

supple turret
#

okay and the second part of the question?

bold knot
#

and yes it is a binary

#

its an executable sh file

#

i fixed it by using chmod +x

supple turret
#

that was the solution fragly was going to propose, we just needed more information first to be sure if that would be the best solution

bold knot
#

yup