Website Port
What port should i host an express.js website on for railway to work wiht ssl?
36 Replies
Project ID:
N/A
please read this
https://docs.railway.app/troubleshoot/fixing-common-errors
ty also can i make a config file that creates a database every time i try to deply a repo
youd want to listen to the projects webhook and then deploy a the desired database template with the api
i chnage the ip to 0.0.0.0 but it didnt work
please read the docs page, dont skim read it
i did
it mentioned more than just the 0.0.0.0 host
yeah port is = process.env.PORT
can you share your repo
github repo?
yes please
GitHub
GitHub - kewwie/levels
Contribute to kewwie/levels development by creating an account on GitHub.
on railway, what does this line log? https://github.com/kewwie/levels/blob/main/src/web/startup.js#L18
please chill with the ping replies
Okay sorry
haha okay well that was still a reply, we are in the same chat dont worry ill see your message
I chat in a lot of big servers so just respond by defaul
no worries
what does the railway url say when you visit it?
send the railway domain please
wait what why does it work now lol
i accedently closed my chrome an when i styarted it again it works
i have that effect
yeah youre too good but could i get help with one more thing?
for sure
also, warrior nun pfp, based
i wanted to set up a postgrendb do i need to do anything special and can i get it hosted on a specific url?
when you have a project open, click the
+ New
button > database > postgres
then read this https://docs.railway.app/develop/variables#reference-variables
the databases dont have custom urls, what would be the usecase for a custom database url?idk so i dont have to update the git repo with the url
the ping replies
sorry forgot
please read the docs link
okay
okay thanks
honestly the whole page should answer all your questions 😆