8 months ago
I'm trying to host a static web pages, the basic html css js thingies. Do I need to connect them to fastapi or something, or there's a better way? 🫠
0 Replies
8 months ago
You can use Vercel / Render / CF Pages for hosting static pages
8 months ago
on railway?
8 months ago
dont know why they offer that as a solution, you are asking about railway
8 months ago
you should be able to put your site files in a public
folder
8 months ago
unless you have a node project that generates static files with react, thats a while different topic
8 months ago
just put them all in a public folder
does it work similar to github pages, i dont have to specify anything?
8 months ago
it should be auto detected as long as your site files are in a public
folder
Alright, I will try that, also for a route /about is it like about/index.html
?
8 months ago
Brody, i think he litteraly has raw HTML, and JS files it seems. no build step.
8 months ago
i know
8 months ago
put everything into a public folder, im not sure how i could clarify this statement further
8 months ago
but on railway we cannot host static files directly, without running any server.
8 months ago
whats wrong with running a server?
8 months ago
please provide specific errros
8 months ago
a link to the service would be best
8 months ago
^
8 months ago
no problem
8 months ago
not sure, check your metrics often
8 months ago
where does it say that
8 months ago
let it run for some time, it will adjust