C
C#4w 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
BumperOP4w ago
The website is ASP dotnet I should probably mention that
FusedQyou
FusedQyou4w 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
Pobiega4w 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 ✿
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
Angius4w ago
Not static, then Unless it's pure Blazor WASM
Bumper
BumperOP4w ago
But it doesn’t work on asp from what I’ve read
Pobiega
Pobiega4w ago
correct. Because what you said isnt a static website.
Bumper
BumperOP4w ago
The website only has code that reads from files which serve as the “database”
Pobiega
Pobiega4w ago
So again, not static.
Bumper
BumperOP4w ago
Ooh okay
Pobiega
Pobiega4w ago
that will need a backend at all times, unless you send the "database files" to the client and do the searching there
Bumper
BumperOP4w 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 ✿
. @Bumper Assuming back and front are separated
Bumper
BumperOP4w ago
I am sorry I have no idea what AWS is And they are not separated no
Angius
Angius4w 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
BumperOP4w ago
It’s .net 8
Angius
Angius4w ago
It's gonna run on Linux just fine, then
Bumper
BumperOP4w 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
Angius4w ago
On Azure...?
Bumper
BumperOP4w ago
Yes
Angius
Angius4w ago
Huh
Bumper
BumperOP4w 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
Pobiega4w ago
Sure, but you don't pay only for traffic
Bumper
BumperOP4w 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
Pobiega4w ago
Consider just making a real database if it's gonna change that often? :p
✿ Scarlet ✿
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