4 ms·
It’s kind of funny that the top two posts right now are: 1. Why Self-Host? 2. GitHub Issues
by koolba 1y ago
It’s kind of funny that the top two posts right now are:
1. Why Self-Host?
2. GitHub Issues
- chistev 1y agoWhat's the joke?
- dvmazur 1y agoGitHub Pages are affected too
- logicallee 1y agoGithub hosts git repos, so it's an example of when self-hosting git repos on one's own servers could remain operational despite a github outage.
- jsheard 1y agoAnd yesterday we had "GitHub pausing feature development to prioritize moving infra to Azure", immediately followed by them breaking their infra.
- cluckindan 1y agoWell, of course the corporation wants to dogfood their platform. Expecting more and more downtime and random issues in the future.
- progbits 1y agoI thought they were already on Azure? At least I'm pretty sure the runners are, our account rep keeps trying to get us to use their GPU runners but they don't have a good GPU model selection and it seems to match what azure offers.
- thelastgallon 1y agoIts better for github to self-host.
- sam_lowry_ 1y agoHere's the step-by-step guide to self-hosting git repositories: Change directory to your local git repository that you want to share with friends and colleagues and do a bare clone `git clone --bare . /tmp/repo.git`. You just created a copy of the .git folder without all the checked out files. Upload /tmp/repo.git to your linux server over ssh. Don't have one? Just order a tiny cloud server from Hetzner. You can place your git repository anywhere, but the best way is to put it in a separate folder, e.g. /var/git. The command would look like `scp -r /tmp/repo.git me@server:/var/git/`. To share the repository with others, create a group, e.g. `groupadd --users me git` You will be able to add more users to the group with groupmod. Your git repository is now writable only by me. To make it writable by the git group, you have to change the group on all files in the repository to git with `chgrp -R git /var/repo.git` and enable the group write bit on them with `chmod -R g+w /var/repo.git`. This fixes the shared access for existing files. For new files, we have to make sure the group write bit is always on by changing UMASK from 022 to 002 in /etc/login.defs. There is one more trick. For now on, all new files and folders in /var/git will be created with the user's primary group. We could change users to have git as the primary group. But we can also force all new files and folders to be created with the parent folder's group and not user primary group. For that, set the group sticky bit on all folders in /var/git with `find /var/git -type d -exec chmod g+s \{\} +` You are done. Want to host your git repository online? Install caddy and point to /var/git with something like example.com { root * /var/git file_server } Your git repository will be instantly accessible via https://example.com/repo.git https://example.com/repo.git.
- esafak 1y ago3. QED
- paulddraper 1y agoIt is funny. At the same time, self-hosting is great for privacy, cost, or customization. It is not great for uptime.
- danlugo92 1y agoI self host a server for a website and I also compile executables in there and it's been running just fine for 2 years and it's not even like a big provider, a very niche one actually (mac servers)
- kelvinjps10 1y agoWhy Mac servers?
- guluarte 1y agoare not mac servers more expensive than traditional ones? the only reason i've used them is to compile xcode
- paulddraper 1y agoNo restarts?