R
Railway

✋|help

Change Heroku to Railway

SSrGobi8/27/2023
I need more info because I have a problem with Heroku with my hosted proyect there WebSocket doesnt load and doesnt work, If i host my proyect here that problem would be solved?
SSrGobi8/27/2023
N/A
Jjonbeau8/27/2023
without knowing the specific issues you faced with heroku, what i can say is this; i have an app with websockets working on railway currently.
SSrGobi8/27/2023
Good fellows I'm having a strange problem with a project that uses WebSocket a server, an API and the discord bot system in conjunction with a front in Angular15 and hosted on Heroku, with the domain purchased in Google domains and managing DNS and other security in CloudFlare which in turn connects the DNS of Heroku and SSL, for now the thing is that the WebSocket to be used in HTTPS needs the certificate and the key that I have already put them of the Certificates of origin of CloudFlare to add them manually has Heroku so that this does not block me the SSL since being HTTP if it works correctly but practically disabling the security of cloudflare, then I need to manually manage the SSL to be able to include them in my server of origin (WebSocket) and in turn to be accepted by Heroku had the automatic SSL
BBrody8/27/2023
railway has automatic ssl, and without knowing the issue you faced with heroku, what I can say is this, I also have an app with websockets that works perfectly on railway so my advice will be, move your app over to railway first, if you encounter issues, come back here and we will work through any possible issues together
SSrGobi8/27/2023
Why the system takes so long to verify my custom domain?
BBrody8/27/2023
no pings please #🛂|readme #5
SSrGobi8/27/2023
Sorry, but look at the image, it is already configured in Cloudflare and I have also seen the documentation for it. https://docs.railway.app/deploy/exposing-your-app
BBrody8/27/2023
when you use a cloudflare proxy it prevents railway from checking that the cname has been set correctly, there's no need to worry your domain works fine and yes I know the screenshot shows a green checkmark on a cloudflare proxied domain, it's irrelevant as long as the domain works, and it does
SSrGobi8/27/2023
But why does it take so long? I have to wait 72 hours to be able to put the websoket then? since I can't give wss the url: https://web-production-d1d3.up.railway.app/ but it has to be: https://espcustoms.xyz/
BBrody8/27/2023
like I just said, your domain already works I have been to your site, no issues whatsoever you can proceed with whatever you where doing with websockets now
SSrGobi8/27/2023
Right, sorry, I just got in, thank you very much, now I can. ('wss://espcustoms.xyz')
BBrody8/27/2023
yep that would be the correct scheme for websockets over https but do let me know if you run into any more issues
SSrGobi8/27/2023
It seems that I have a problem but now I do not get WebSocket failure, but things do not load, could we communicate privately?
BBrody8/27/2023
curious as to what could be achieved privately that can't be achieved in this thread
SSrGobi8/27/2023
I was wondering if we could make a call, so that the feedback would be instantaneous.
BBrody8/27/2023
sorry I'm not gonna do that you are aware i don't work for railway right?
SSrGobi8/27/2023
Well you could give the permissions to my partner who is trying to verify with github and connect the bot with it, but he gets an error, is that my partner speaks English better than me and besides so I can continue doing checks.
BBrody8/27/2023
^
SSrGobi8/27/2023
aaahh sorry :/
BBrody8/27/2023
but that doesn't really matter in this situation, nothing here has yet to require someone from the team step in your partner would need to upgrade to the hobby plan, the hobby plan has no verification requirements
SSrGobi8/27/2023
Well, I tell you, I have a discord bot project that contains a server for api use, the new websocket and a dashboard generated with angular15, this dashboard has a service system in which I manage the endpoints of the API and now the WebSockets, the whole dashboard is generated a file code with the configuration of 'ng build --configuration production' and saved in a 'dist' to which I will pass you the Dashboard WebSocket service system and the server. ts of the main project that uses routers and so on:
BBrody8/27/2023
don't you need to register the websocket on a specific endpoint? like /events or something? okay well you said it doesn't work right?
SSrGobi8/27/2023
Then you think I should include an endpoint to 'this.socket$ = webSocket('wss://espcustoms.xyz');' Correct. Things that are connected to WebSocket do not load.
BBrody8/27/2023
then I think you should start showing me some errors lol you gotta show me something "does not load" is not all that useful on its own
SSrGobi8/27/2023
With the same database (MongoDB) if it loads locally, for example you can see on the top right and bottom left the theme that there are more things, (In the darker left bar do not look too much because that is the bot servers and I'm using the ofical and test therefore are on different servers).
BBrody8/27/2023
I see errors in the console logs but check if the websocket connection was successful in the network logs I think it's important to state that this is only a code issue, not an issue with railway railway runs your code as is after all
SSrGobi8/27/2023
Wait I think I found the error I am using on local the wss of espcustoms.xyz on local but the endpoint was local on both main and localhost may be because localhost:3000 can not be on main: this.socket$ = webSocket('wss://espcustoms.xyz'); executed correctly on local. endpoint: 'http://localhost:3000/api', executed correctly on local if I change this to https://espcustoms.xyz/api for the main you think it will work??
BBrody8/27/2023
i do not know what endpoint your websocket is registered to, but you would still need to use wss

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
Flask app wont work with port 0.0.0.0application not respondingmemory usage doesn't decreasememory usage of one of my python processes was instantly increased to ~2700 mb, it was my mistake, bAutomated Postgres backup onto a volume ?Since now the project I was developing for a while is almost ready for production, we need to make show can i deploy my vue projecti get this errorHosting Django backend and React frontend from the same DomainI have two services, one for my backend and one for my frontend. They currently have two separate doResponse Pending with OpenAIHi I have SAAS website running on Railway using OpenAI with Next js , the problem is the endpoint noDjango backend fails to respondWhen I click on the url for my django backend (I am using react frontend in a separate service) I geReflexHi, someone deploy reflex.dev in railway? do you have a guide?The new log explorer is great, Is it possible to show the service name in there ?Currently in the log explorer the service name is an ID and I was wondering if you plan to show the What is a good / recommended resource use for a web app? Plus question about scaling.I am deploying a few applications for a client of mine. It is a multi-tenant app made in sveltekit. How to put site on maintenance mode in railway?hello everyone how do i put a site on maintenance mode in railway or 'page can not be reached' mode Service not updating to Hobby specshey! I don't know if I'm doing something wrong but I paid for the hobby plan but my service still haerror on index fileI have an index file in a folder that exports all the components in that folder for easier importinOdoo Community EditionI would like to know if we can setup Odoo in railway? The odoo image is built with docker using thiWebsocket disconnectingHey, I have an app that uses a websocket (hosted on railway) but for some reason every once in a whinpm WARN config production Use `--omit=dev` instead when trying to start Nestjs appI'm trying to deploy my app (https://github.com/Omniforce-Technologies/omniforce-asset-store/tree/deDjangoHello good people of Railway! I would like to ask for a bit of help and advice about Django deploymeI have a custom domain from SuperHostingI have this doman briefeats.eu and I want to configure it to point to my angular app Currently I haDNS settings not being accepted by domain host.I'm finalizing a deployment of a React.js frontend only site, I got the green confirmation of the siWinston logs not appearing in deployment logsIn my node.js deployment if I do a console.log it appears normally in deployment logs, but using win