2 years ago
NODE + EXPRESS.
Someone help me, I've already configured it the way they said in the topics and still my apk is not accessible via the generated link and through the terminal, I see the console the way I put it below, which means it's running, it's just not reaching the link.
const port = Number(process.env.API_PORT) || 3000;
app.listen(port, "0.0.0.0", () => {
console.log("##################################################");
console.log("## ##");
console.log("## - Status: Online ##");
console.log("## - Build: Middleware VerifyToken ##");
console.log("## - Versão 1.0 ##");
console.log("## ##");
console.log("##################################################");
});
12 Replies
Status changed to Solved Railway • almost 2 years ago
2 years ago
I already put it this way, it doesn't work.
2 years ago
From the code you have shared, you have not yet followed the directions in that link, please read that docs page.
2 years ago
Node / Express:
1 - Use PORT provided in environment or default to 3000
2 - Listen on port and 0.0.0.0
const port = Number(process.env.API_PORT) || 3000
app.listen(port, "0.0.0.0", () => {
2 years ago
I didn't understand what I did wrong… I already read the page.
2 years ago
The documentation is not very good for those in Brazil, I'm on trial and I'm interested in continuing to use it, but unfortunately it's very bad for me, can't you help me by being more specific?
2 years ago
The code issue is very clear after reading the docs page and it would be extremely beneficial for you to come to the conclusion after reading the documentation, please read the documentation again. Do not skim read.
2 years ago
After a lot of struggle I managed, I just had to add an environment variable called PORT… it was much easier for you to tell me what was missing, here's a tip for future support. thank you very much.
2 years ago
For me, who doesn't understand much English, the translated documentation is a bit distorting and difficult to understand… I had already read it I think 3 or more times before opening the support.