zisra
FREEOP
a year ago
My code, using fastify:
import Fastify from 'fastify';
// ...
const port = parseInt(process.env.PORT || '3000', 10);
console.log('Listening on port', port);
app.listen({ port: port }, (err) => {
if (err) throw err;
});Link: https://substack-production.up.railway.app/
The port should be correct, because it logs the port 8080 and shows 8080 in the deploy settings (see image). No errors in the log at all. Github:
https://github.com/zisra/substack
8 Replies
brody
EMPLOYEE
a year ago
what is the target port set to?
brody
EMPLOYEE
a year ago
are you listening on 0.0.0.0?
brody
EMPLOYEE
a year ago
no problem!
brody
EMPLOYEE
a year ago
!s
Status changed to Solved brody • about 1 year ago
