R
Railway•15mo ago
Fragly

How do I upload a static site to railway?

This is probably a silly question ahhaha
56 Replies
Percy
Percy•15mo ago
Project ID: N/A
Fragly
Fragly•15mo ago
N/A
Fragly
Fragly•15mo ago
this is what my site looks like
Fragly
Fragly•15mo ago
from what I understand I need a Dockerfile
Brody
Brody•15mo ago
lol
Fragly
Fragly•15mo ago
gggrgrgrgr go ask ChatGPT
Brody
Brody•15mo ago
no no I'll help it might give you a stupid answer what was that static file built with
Fragly
Fragly•15mo ago
Html, Css and chadcat
Brody
Brody•15mo ago
none of that react stuff?
Fragly
Fragly•15mo ago
nope
Brody
Brody•15mo ago
insert chad meme I'm so tempted to give you a solution that uses asmhttp
Fragly
Fragly•15mo ago
<:e_guh:1082624029971726356>
Brody
Brody•15mo ago
there's so many possibilities
Fragly
Fragly•15mo ago
I think the issue is that the builder is nixpacks and it expects a start command How do I change the builder?
Brody
Brody•15mo ago
lol hold your horses
Fragly
Fragly•15mo ago
😭
Brody
Brody•15mo ago
Brody
Brody•15mo ago
🙂
Fragly
Fragly•15mo ago
naah malwarebytes blocks discord's domain
Fragly
Fragly•15mo ago
that's wiild
Brody
Brody•15mo ago
that's possibly the most minimal http server you could run on railway
Fragly
Fragly•15mo ago
okay.. so I guess this isn't just a script
Fragly
Fragly•15mo ago
ty brody :)
Brody
Brody•15mo ago
nope, it's the server
Fragly
Fragly•15mo ago
Brody
Brody•15mo ago
let me know how it goes
Fragly
Fragly•15mo ago
kk, thanks for your help
Brody
Brody•15mo ago
if the metrics ever show resources about 0.1vCPU or 10mb of RAM, come back and tell me
Fragly
Fragly•15mo ago
🫡 yessir
Brody
Brody•15mo ago
this site isn't anything super critical right?
Fragly
Fragly•15mo ago
As'n if it goes down people will lose billions of dollars? nah it's just a small website for my dad, will probably get like 3 page visits a month
Brody
Brody•15mo ago
sounds good I don't think railway team will mind you running a site for your dad that uses 4mb of ram and 0.0 vCPU
Fragly
Fragly•15mo ago
yea, I mean I did end up making it on my account because it'll probably be like 10 cents a month max ( api and static site both ) so
Brody
Brody•15mo ago
10 cents sounds about right I run Go services that are around 20 cents
Fragly
Fragly•15mo ago
Neat, it worked thanks a ton brody :D
Brody
Brody•15mo ago
no problem
Fragly
Fragly•15mo ago
one small issue though
Fragly
Fragly•15mo ago
probably just an issue due to it being hosted locally
Brody
Brody•15mo ago
try without forward slash
Fragly
Fragly•15mo ago
okay nah it seems it's due to the /public/ not being there will probably work fine when hosted on railway
Brody
Brody•15mo ago
wait what that's local
Fragly
Fragly•15mo ago
ye
Brody
Brody•15mo ago
you running docker locally?
Fragly
Fragly•15mo ago
no no, was just fixing a few images that wasn't loading correctly and saw that happening
Brody
Brody•15mo ago
confused
Fragly
Fragly•15mo ago
okay actually there's a bigger issue
Brody
Brody•15mo ago
interesting okay
Fragly
Fragly•15mo ago
works when I specify the index.html
Brody
Brody•15mo ago
hold on, I'll be back in like 20 mins
Fragly
Fragly•15mo ago
kk imma go grab some breakfast I can just use github for my static hosting that'll probably be easier
Brody
Brody•15mo ago
honestly yeah idk why I didn't say that github pages do that it will handle clean paths for you
Fragly
Fragly•15mo ago
yea, neat just uploaded to github pages well thanks for you efforts brody, i still appreciate it :)
Brody
Brody•15mo ago
it was a cool idea, but as always I overcomplicate things
tanosaur
tanosaur•15mo ago
This is interesting, exactly the same question I had this week
Brody
Brody•15mo ago
github pages,cloudflare pages