No description
dockerfiles | ||
hotfixes | ||
scripts | ||
tests | ||
to_migrate | ||
unit-files | ||
.gitignore | ||
CHANGELOG.md | ||
cloud-config | ||
LICENSE | ||
README.md | ||
Vagrantfile |
IndieHosters
This repository contains the configuration and scripts we use to control our servers. It can run inside Vagrant or deploy to a server
Prerequisites to running this code with Vagrant:
- vagrant
- virtualbox
- nfs
- linux: run
apt-get install nfs-kernel-server
, or your OS equivalent
- linux: run
- vagrant-hostsupdater
- run
vagrant plugin install vagrant-hostsupdater
to install
- run
Get started:
vagrant up
Wait for the provisioning to finish (~40mins), 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
.
Set up a domain:
vagrant ssh core-1
sudo mkdir -p /data/import/example.dev/TLS
sudo cp /data/indiehosters/scripts/unsecure-certs/example.dev.pem /data/import/example.dev/TLS
sudo systemctl enable static@example.dev
sudo systemctl start static@example.dev
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
Tests
vagrant destroy
vagrant up
# Set up example.dev as above, and test https://example.dev in your browser
vagrant ssh core-1
sudo su
/data/indiehosters/tests/start.sh
exit
exit
vagrant reload --provision
vagrant ssh core-1
sudo su
/data/indiehosters/tests/finish.sh