R
Railway•2y ago
Fragly

How do I upload a static site to railway?

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