#my node js api isn’t getting a domain
23 messages · Page 1 of 1 (latest)
Project ID: fec32241-499a-4c5b-af0d-826fa71978bb
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});
});
To give your API a domain, you'd want to go to service settings and generate a domain
where are you defining the port variable?
you're not listening to the PORT railway provides, you need to have your app listen on the PORT environment variable
const port = process.env.PORT || 3000;
read this for more info: https://docs.railway.app/guides/fixing-common-errors
But every time before railway usually generates one automatically
Why so? I can use an env if I need to
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
i see it works now thats. But can you help with this aswell please?
What is zsign, is it a binary in your repo?
@bold knot ping for visibility
its an app signer for iphone apps
you input an apple development certificate and it signs the app
okay and the second part of the question?
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
yup