C
C#2mo ago
Bumper

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
Bumper
BumperOP2mo ago
The website is ASP dotnet I should probably mention that
FusedQyou
FusedQyou2mo ago
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
Pobiega
Pobiega2mo ago
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.
✿ Scarlet ✿
✿ Scarlet ✿2mo ago
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
Angius
Angius2mo ago
Not static, then Unless it's pure Blazor WASM
Bumper
BumperOP2mo ago
But it doesn’t work on asp from what I’ve read
Pobiega
Pobiega2mo ago
correct. Because what you said isnt a static website.
Bumper
BumperOP2mo ago
The website only has code that reads from files which serve as the “database”
Pobiega
Pobiega2mo ago
So again, not static.
Bumper
BumperOP2mo ago
Ooh okay
Pobiega
Pobiega2mo ago
that will need a backend at all times, unless you send the "database files" to the client and do the searching there
Bumper
BumperOP2mo ago
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
✿ Scarlet ✿
✿ Scarlet ✿2mo ago
. @Bumper Assuming back and front are separated
Bumper
BumperOP2mo ago
I am sorry I have no idea what AWS is And they are not separated no
Angius
Angius2mo ago
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
Bumper
BumperOP2mo ago
It’s .net 8
Angius
Angius2mo ago
It's gonna run on Linux just fine, then
Bumper
BumperOP2mo ago
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
Angius
Angius2mo ago
On Azure...?
Bumper
BumperOP2mo ago
Yes
Angius
Angius2mo ago
Huh
Bumper
BumperOP2mo ago
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
Pobiega
Pobiega2mo ago
Sure, but you don't pay only for traffic
Bumper
BumperOP2mo ago
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
Pobiega
Pobiega2mo ago
Consider just making a real database if it's gonna change that often? :p
✿ Scarlet ✿
✿ Scarlet ✿2mo ago
t3 nano will cost max like 2 dollars month. since its a fixed ec2, not by usage.
Want results from more Discord servers?
Add your server