How to host small static website
Hey guys, the website has no database and the users cannot change it's contents in any way(I believe that's what a static website means). It won't be getting much traffic as the users are around 100, I would expect a couple visits per day at most. What is the easiest way to host it, I am willing to pay for it, but would prefer a free hosting service :)
26 Replies
The website is ASP dotnet I should probably mention that
I personally like Hetzner and its VPS service. There are plenty of ways to host, but Hetzner is very simple to se tup and you can always scale up
However, if you have just this single static website, there are better ways
A "static website" usually refers to one not having a backend portion at all, meaning its just a bunch of html/css/js/image files that are hosted somewhere, For that kind of service, there are entirely free hosts, such as github pages.
For ASP.NET, I don't know of any entirely free hosts.
Github pages
you must NOT pay for it at all
the backend can be t2.nano from AWS
I think its less than 2 dollars month
Not static, then
Unless it's pure Blazor WASM
But it doesn’t work on asp from what I’ve read
correct. Because what you said isnt a static website.
The website only has code that reads from files which serve as the “database”
So again, not static.
Ooh okay
that will need a backend at all times, unless you send the "database files" to the client and do the searching there
The files are in a folder inside the project
The searching is only done when a Page is opened and it shows a table of the contents of the file
. @Bumper
Assuming back and front are separated
I am sorry I have no idea what AWS is
And they are not separated no
Amazon Web Service
It only costs an arm to host there
As opposed to Azure, that costs an arm and a leg
The cheapest option would be a cheap Linux VPS
I'm assuming the project was made with modern .NET, and not something like Framework 4.8
It’s .net 8
It's gonna run on Linux just fine, then
I started setting up Azure, been at it for a couple hours now I’m getting errors left and right
There’s a free option no?
And a 2$ plan from what I saw
On Azure...?
Yes
Huh
Maybe it’s just a trial
Still even if it is I have some funding for it, traffic will be extremely low tho as I said
Sure, but you don't pay only for traffic
Files are small if that’s what you’re reffering to
Whole site has like 5 pages
Yes 😂
Database innit
What’s ssg
I just commit to github and refresh in azure
Yeah I’ll be changing it like 2-3 times a week
Consider just making a real database if it's gonna change that often? :p
t3 nano will cost max like 2 dollars month.
since its a fixed ec2, not by usage.