this post was submitted on 26 Apr 2024
246 points (91.8% liked)

Programming

17450 readers
64 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
 

For most personal projects, hosting on the cloud may be overkill, but tempting with its supposed ease of use and benefits of scale. Self-hosting is often overlooked as a solution with the benefit of simplicity and cost.

Interesting discussion and demonstration of self hosting the kinds of apps most personal projects will end being.

you are viewing a single comment's thread
view the rest of the comments
[–] sentient_loom@sh.itjust.works 47 points 6 months ago (6 children)

A VPS is also very expensive though. And shared hosting usually only allows HTML and PHP. So what's the affordable alternative?

[–] orac@feddit.nl 27 points 6 months ago* (last edited 6 months ago)

Personally I self-host on a raspberry pi. It took me a few weeks to setup, but it has been running without problems for almost 2 years now at practically no cost (beyond purchase and electricity).

[–] MajorHavoc@programming.dev 25 points 6 months ago (1 children)

Great question. Here's where I've landed:

  • For a surprising number of things, my previous desktop, running Linux, confined to my local network, is perfectly fine.
  • For a number of other things, a Raspberry Pi, with a dedicated disk image (ISO), confined to my local network, is fine.
  • Surprisingly often, a not-at-all-dynamic dynamic DNS solution gets the job done. I follow the first half of the DynDNS guide, and then hard code my preferred IP, and skip the rest. It's inconvenient when my IP changes, but that happens a lot less often than most folks imagine. Most DNS providers have provided this to me for free after I bought my domain name from through them.
  • For my public personal portfolio, GitHub pages works fine.
  • For additional silly static sites, AWS S3 and AWS CDN get the job done for about $3 per month.
  • When I need to do public facing database stuff, I get a virtual private server, not from Amazon or Microsoft, who both way overcharge for small apps.
[–] GreyEyedGhost@lemmy.ca 5 points 6 months ago

I was surprised to find oracle's offerings so economical for personal use. I set up a foundry server (TTRPG) and so far it hasn't cost me a cent. Still not a fan of them or their CEO, but this is working for me.

[–] fmstrat@lemmy.nowsci.com 11 points 6 months ago (1 children)

Plenty of places with $5 per month VPS

[–] sentient_loom@sh.itjust.works 0 points 6 months ago (1 children)

With sudo access? Can you suggest some? I did tons of research and rarely found anything less than $70/month.

[–] fmstrat@lemmy.nowsci.com 2 points 6 months ago

Yup, many are mentioned in the comments alongside mine. Linode is my option of choice.

[–] wccrawford@lemmy.world 11 points 6 months ago (1 children)

I use nearlyfreespeech.net. They bill for usage, and since my site gets almost no hits and doesn't take much storage, it's ridiculously cheap. Much cheaper than even he $2.50.mo VPS listed in another comment. I just checked, and I spend an average of $.30/mo.

[–] Slimy_hog@programming.dev 2 points 6 months ago

Thanks for this; I signed up because of your comment

[–] wildbus8979@sh.itjust.works 8 points 6 months ago

VPS' are pretty cheap. Checkout https://buyvm.net starts at like 2.50$/mo

[–] refalo@programming.dev 2 points 6 months ago* (last edited 6 months ago) (1 children)

expensive

Highly disagree, but I realize expensiveness is subjective.

What is your definition of not cloud? Does anyone else's VM count? So linode or digitalocean for example would be acceptable, or no?

I guess "alternative" is also subjective.

[–] sentient_loom@sh.itjust.works -1 points 6 months ago (2 children)

I've been looking for a place to host web apps in whatever language (Rust, Nim, or whatever) and framework I want, where I can use my own domains and multiple apps, and have sudo access. And I don't want to pay $70/month for it. I gave up on that hunt (it might have been unrealistic), although I'll be researching some of the alternatives offered in these comments.

[–] Miaou@jlai.lu 1 points 6 months ago

My ovh vps costs me 60€/y. Granted it's low end specs. What would you need exactly?

[–] refalo@programming.dev 1 points 6 months ago* (last edited 6 months ago)

Oracle VMs have a perpetual free tier. Even AWS's non-free tier starts around $3/mo, similar for buyvm/DigitalOcean/linode/etc. There are MANY options that are way cheaper than $70... unless I misunderstood your requirements.