3 ms·
This is a great thing to learn. There are a few basic pieces to this. - Start with any server, like a Digital Ocean droplet for like $5 per month - Read some b
by hnarayanan 3y ago
This is a great thing to learn. There are a few basic pieces to this.
- Start with any server, like a Digital Ocean droplet for like $5 per month
- Read some blog posts and setup basic security (like locking down ssh access to root, setting up a firewall and so on)
- Think about the kind of app you want to use or host
- This will entail things it needs, e.g. Postgres, setting up dependencies
- Come up with ways to start and stop services and such
In the end, as you start to see patterns for all this, you will find it beneficial to script everything in some way so that you can easily reuse patterns and lessons on other servers and apps.
I tend to use Ansible for this, and here is a concrete example of all sorts of things you might find interesting: https://github.com/scancer-org/setup https://github.com/scancer-org/setup
This sets up a server, locks it down, adds a python app with a worker set and so on: https://github.com/scancer-org/setup https://github.com/scancer-org/setup
Good luck on your learning journey!
- ctxc 3y agoThe repo looks like something for me to explore, will check it out. And I plan to take a look at ansible too. Thanks!