#How to deploy a static site?

45 messages · Page 1 of 1 (latest)

heavy basin
#

I have a really basic static site and was wondering how I would deploy it.

By the way, index.html is in the root folder of the project; no site or app folder.

devout capeBOT
#

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.

quick zinc
#

take a look at the caddy template

visual forge
#

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

visual forge
#

nginx 🐐

heavy basin
quick zinc
#

yeah dont listen to aleks, use caddy

heavy basin
#

i still want it to work as a static site too just in case

quick zinc
#

honestly, youre better off with github pages, netlify, vercel, cloudflare pages

heavy basin
quick zinc
quick zinc
heavy basin
#

how

quick zinc
#

ill leave you with that link, since this isnt about railway anymore

visual forge
#

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

heavy basin
#

@quick zinc where did the questions channel go

#

it disappeared

visual forge
#

It got disapparated

#

poof

heavy basin
#

bro what

visual forge
#

idk, ask neb

heavy basin
visual forge
#

nvm

#

It was just kind of annoying

#

It didn't really fix the problems it was supposed to fix

heavy basin
#

bruh

#

well uh i guess i will post this here

#

i got the cf pages to work

visual forge
#

cool!

heavy basin
#
Array(7).fill("nya").join(" ")
#

the banner lol