Live data from Hacker News

Ask HN: Advice for Hosting and Deploying My Side Project

news.ycombinator.com

21–30 of 37 posts

Re: Ask HN: Advice for Hosting and Deploying My Side Project

#21
Docker is about uptime, consistency, integrity, CI/CD, etc. If you're just testing stuff, and won't notice a day or two of downtime, you can skip it for now (but it does make things easier once you learn it).

Always keep working backups of whatever you want to have on your server. Expect your server to get erased at any moment without previous notice, be aware of how much data are you willing to lose in case of a failed restore.

If you're processing user data, be aware of applicable data protection laws (if any).

Security is only relevant if you become somewhat popular, or you plan on leaving the project completely unattended for a longer period of time (don't, you will most likely get hacked). Otherwise, apply basic security measures and don't sweat it too much until you actually start having something worth protecting. Erasing and re-creating a server/instance from scratch is acceptable and secure enough in the beginning.

Re: Ask HN: Advice for Hosting and Deploying My Side Project

#22

You were on the right track, DigitalOcean is the easiest and at $5/mo for Debian/Ubuntu, it should be sufficient for an MVP. If you are concerned about security, just follow the "simple" steps below https://www.digitalocean.com/community/questions/best-practi... .. it's mostly just typing stuff in a terminal You can probably skip 10, 11, 14, 15, 16, 17 (in the short run) If you want to automate this, you can learn An…

I second using DigitalOcean. They are inexpensive and reliable.

I use ubuntu on my droplets following this guide https://www.digitalocean.com/community/tutorials/initial-ser...

I've created a simple ansible playbook that implement most of the steps in the guide.

https://github.com/bjacobt/digitalocean-ubuntu-ansible-setup

Re: Ask HN: Advice for Hosting and Deploying My Side Project

#25
post #24

If you are in Europe you can also check out Hetzner Cloud. Pricing is way way better than everything else. You have to manage it yourself though, but it's easier than you might expect and you are learning something new on the way.

I was about to suggest Hetzner Cloud as well, but wasn't sure if OP is looking for IaaS (like Hetzner Cloud) or PaaS.

Re: Ask HN: Advice for Hosting and Deploying My Side Project

#26

You were on the right track, DigitalOcean is the easiest and at $5/mo for Debian/Ubuntu, it should be sufficient for an MVP. If you are concerned about security, just follow the "simple" steps below https://www.digitalocean.com/community/questions/best-practi... .. it's mostly just typing stuff in a terminal You can probably skip 10, 11, 14, 15, 16, 17 (in the short run) If you want to automate this, you can learn An…

While I do like Digital Ocean and it's perfectly fine solution, I like and use Scaleway.com which is slightly cheaper, at least for small projects and I would say equally easy to use and reliable.

Re: Ask HN: Advice for Hosting and Deploying My Side Project

#27
post #15

I would have said Heroku. But it doesn't appear its as straight forward for your stack as it is for others. However this looks promising: https://github.com/emk/heroku-buildpack-rust I would have also suggested https://nanobox.io/ - but their pricing is no longer transparent (used to be pretty cheap). It would also involve dockerizing your app. As for clever cloud, their Rust support is in beta... I'd spend a short a…

You might look at this for running rust on heroku:

https://elements.heroku.com/buildpacks/rhelmer/heroku-buildp...

Note I haven't done this, but it turned up in a search.

Re: Ask HN: Advice for Hosting and Deploying My Side Project

#28
I am writing a book exactly for this purpose right now.

For someone making a project and asking "how do I host it now?". My pre-release is still ~3 months far away, so you cannot buy it now, but if you would like to learn the deployment yourself at some point, here it is:

https://vpsformakers.com/

What I recommend is to learn the fundamentals right and start with Bash before jumping to more complex config management tools. Even if your deployment process won't be smooth in the beginning (copy files, setting something manually) do not underestimate the security aspect - you owe it to your users to protect their data.

And avoid ANYTHING you don't need right now. Avoid Docker and the whole universe of tools around Kubernetes. I imagine with Rust you can easily deploy one binary with systemd unit, PostgreSQL service from the OS, set up NGINX and SELinux and you are done.

Someone here said Docker is about uptime. What the *? Docker is additional layer where something can go wrong so by definition it won't be better than just a systemd service.

Re: Ask HN: Advice for Hosting and Deploying My Side Project

#29

You were on the right track, DigitalOcean is the easiest and at $5/mo for Debian/Ubuntu, it should be sufficient for an MVP. If you are concerned about security, just follow the "simple" steps below https://www.digitalocean.com/community/questions/best-practi... .. it's mostly just typing stuff in a terminal You can probably skip 10, 11, 14, 15, 16, 17 (in the short run) If you want to automate this, you can learn An…

Second this. DO is great and I host all my projects, whether static websites, Node.js applications or just MVPs there.

- Static Websites on one $5 Droplet with Server Blocks: https://www.digitalocean.com/community/tutorials/how-to-set-...

- Web Applications on one $5 Droplet with Dokku: https://www.digitalocean.com/products/one-click-apps/dokku/

In case if you are interested, I explain my setup over here: https://www.robinwieruch.de/deploy-applications-digital-ocea...

Re: Ask HN: Advice for Hosting and Deploying My Side Project

#30
I always recommend https://codemason.io/

I use it for my own web app, and it is perfect. The support I get from Ben (the founder) is awesome. He knows a lot about devops and is a very kind person.

It will take care of all the configuration for you and still let you choose your hosting (mine is DigitalOcean). It uses Docker, so learning a little bit of it would help.

Post reply on HN