10 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
10 months ago
You can use Vercel / Render / CF Pages for hosting static pages
10 months ago
on railway?
10 months ago
dont know why they offer that as a solution, you are asking about railway
10 months ago
you should be able to put your site files in a public
folder
10 months ago
unless you have a node project that generates static files with react, thats a while different topic
10 months ago
just put them all in a public folder
does it work similar to github pages, i dont have to specify anything?
10 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
?
10 months ago
Brody, i think he litteraly has raw HTML, and JS files it seems. no build step.
10 months ago
i know
10 months ago
put everything into a public folder, im not sure how i could clarify this statement further
10 months ago
but on railway we cannot host static files directly, without running any server.
10 months ago
whats wrong with running a server?
10 months ago
please provide specific errros
10 months ago
a link to the service would be best
10 months ago
^
10 months ago
no problem
10 months ago
not sure, check your metrics often
10 months ago
where does it say that
10 months ago
let it run for some time, it will adjust