BIROALTACC
Trying to deploy vanilla TS app, without success
just cleared all of those errors from ts, even tho they were all basically declaring something and then not using it. I also had to fix not making top level await calls. I just wrapped those into async function and then called them, that fixed the issue
17 replies
How to host websockets?
I'm trying this now, but one thing I don't understand how can my websocket listen on the same port as my express, this is how my code looks like now
------------------------------------------
const port = process.env.PORT || 3000;
app.listen(port, "0.0.0.0");
const httpServer = createServer(app);
httpServer.listen(port);
const io = new Server(httpServer, {
cors: {
credentials: true,
origin: ["http://localhost:3000"],
},
});
------------------------------------------
33 replies
my api wont start on railway
Never ending errors with this deployment. Now my server is up and running, but I can't connect to it. Trying out my https://ecommerce-production.up.railway.app/api/auth/test test route to see if api is working and which should respond with "ok" but I get an error saying "Application failed to respond". So, my server is up and running yet its not? What am I missing out guys?
18 replies