BIROALTACC
BIROALTACC
RRailway
Created by BIROALTACC on 12/25/2023 in #✋|help
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
RRailway
Created by BIROALTACC on 12/25/2023 in #✋|help
Trying to deploy vanilla TS app, without success
awesome then
17 replies
RRailway
Created by BIROALTACC on 12/25/2023 in #✋|help
Trying to deploy vanilla TS app, without success
sry, I meant serve
17 replies
RRailway
Created by BIROALTACC on 12/25/2023 in #✋|help
Trying to deploy vanilla TS app, without success
I am using that indeed, is that the same as dist?
17 replies
RRailway
Created by BIROALTACC on 12/25/2023 in #✋|help
Trying to deploy vanilla TS app, without success
I got it up myself, thanks anyway!
17 replies
RRailway
Created by BIROALTACC on 12/25/2023 in #✋|help
Trying to deploy vanilla TS app, without success
still the same
17 replies
RRailway
Created by BIROALTACC on 12/25/2023 in #✋|help
Trying to deploy vanilla TS app, without success
17 replies
RRailway
Created by BIROALTACC on 8/25/2023 in #✋|help
How to host websockets?
alright, I'll try it that way
33 replies
RRailway
Created by BIROALTACC on 8/25/2023 in #✋|help
How to host websockets?
everything worked fine in my localhost with only cons io = new Server
33 replies
RRailway
Created by BIROALTACC on 8/25/2023 in #✋|help
How to host websockets?
So, I should remove app.listen? To be honest, until now i didn't even use createHttpserver nor server.listen until brody linked that example
33 replies
RRailway
Created by BIROALTACC on 8/25/2023 in #✋|help
How to host websockets?
it's the same?
33 replies
RRailway
Created by BIROALTACC on 8/25/2023 in #✋|help
How to host websockets?
i'm noob, i shouldn't use that?
33 replies
RRailway
Created by BIROALTACC on 8/25/2023 in #✋|help
How to host websockets?
that's a good quesiton
33 replies
RRailway
Created by BIROALTACC on 8/25/2023 in #✋|help
How to host websockets?
I see, yes
33 replies
RRailway
Created by BIROALTACC on 8/25/2023 in #✋|help
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
RRailway
Created by BIROALTACC on 8/25/2023 in #✋|help
How to host websockets?
I won't buy domain, what is my other option?
33 replies
RRailway
Created by BIROALTACC on 8/25/2023 in #✋|help
How to host websockets?
"Users who want websocket support should use custom domains for now. The root cause of the disconnects is to an issue with how envoy is handling our wildcard domains. "
33 replies
RRailway
Created by BIROALTACC on 8/19/2023 in #✋|help
my api wont start on railway
I've found my solution, the problem was indeed in port. everything works now, thanks!
18 replies
RRailway
Created by BIROALTACC on 8/19/2023 in #✋|help
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
RRailway
Created by BIROALTACC on 8/19/2023 in #✋|help
my api wont start on railway
Oh, I messed up, forgot to change start script to node index.js after chaning my bcrypt to bcryptjs, it works now thanks!
18 replies