No description
4ba4ab0855
call git pull directly from unit file |
||
---|---|---|
confd | ||
data/server-wide | ||
deploy | ||
doc | ||
importers | ||
scripts | ||
unit-files | ||
.gitignore | ||
CHANGELOG.md | ||
cloud-config | ||
LICENSE | ||
README.md | ||
Vagrantfile |
IndieHosters
This repository contains the confd and bash scripts we use to control our servers. It can run inside Vagrant (see below; FIXME: check whether these instruction currently work) or deploy to a server (FIXME: update those instructions to prescribe less folder structure, explain static https+smtp hosting, and check if they currently work).
Prerequisites to running this code with Vagrant:
- vagrant
- virtualbox
- nfs
- run
apt-get install nfs-kernel-server
, or your OS equivalent
- run
- optional: vagrant-hostsupdater
- run
vagrant plugin install vagrant-hostsupdater
to install
- run
Get started:
vagrant up
Wait for the provisioning to finish (~5mins), and go to your browser: https://indiehosters.dev
If the process fails, for instance due to network problems, you can retry by running vagrant provision
.
If you want to add another nginx instance apart from indiehosters.dev:
vagrant ssh
sudo sh /data/indiehosters/scripts/activate-user.sh example.dev nginx https://github.com/indiehosters/website-static.git
Check https://example.dev in your bowser!
Cleaning up
To clean up stuff from previous runs of your VM, you can do:
vagrant destroy
vagrant up