#How to deploy a static site?
45 messages · Page 1 of 1 (latest)
Project ID: N/A
You can deploy a static site with Railway by creating a file named Staticfile and pasting the following code: yaml status_codes: 404: 404.html Refresh the page a couple of times and click on build logs to check if the deployment was successful.
take a look at the caddy template
I don't know what exactly the bot's talking about, but you should be able to create a nixpacks.toml like the following:
providers = ["staticfile"]
[phases.build]
cmds = ["<something>"]
If your build command outputs to dist it should be picked up and served automatically
nginx 👎
nginx 🐐
@quick zinc @visual forge btw i'm trying to deploy https://github.com/latapals/website
do i really need a /site folder?
i still want it to work as a static site too just in case
honestly, youre better off with github pages, netlify, vercel, cloudflare pages
github pages sucks and vercel costs money for orgs
on github pages ur stuck with using github.io
youre not, but okay lol
thats not all i mentioned
still confused
ill leave you with that link, since this isnt about railway anymore
On GitHub Pages, you can definitely use a custom domain
I do that for my website, and it works well
In the pages settings, there should be a textbox for the domain
Configure your DNS as in the above article, and it should work
bro what
idk, ask neb
which one
nvm
It was just kind of annoying
It didn't really fix the problems it was supposed to fix
cool!

