-
Notifications
You must be signed in to change notification settings - Fork 2
technical
Mindey edited this page Dec 20, 2017
·
12 revisions
.:en
Understanding software is a bit like understanding how a light bulb works:
you plug it into power grid, turn it on, and it lights up.
Infinity is a piece of software. How do you run it?
git clone [email protected]:infamily/infinity.git
cd infinity
docker-compose up
Get git
(how to), and docker-compose
(how to, 👉 tip) before that.
- Create one Ubuntu 16.04 server.
- Map the DNS A records to the server domain (e.g., mydomain.com)
- Make sure you can
ssh [email protected]
- Locally install ansible (at least ansible version 2.4.0.0)
- Install locally:
ansible-galaxy install thefinn93.letsencrypt
(use at least ansible version 2.4.0.0)- Add "inf.li with mydomain.com:
- ./deploy/ansible/site.yml
- ./deploy/ansible/inventories/staging/hosts
- Rename file:
- ./deploy/ansible/inventories/staging/host_vars/inf.li -> mydomain.com
- Review, change to your repo: ./deploy/ansible/roles/prepare/vars/main.yml
- Type, and wait for the server will be fully set up:
ansible-playbook -v -i deploy/ansible/inventories/staging deploy/ansible/site.yml --extra-vars="scenario=init"
- Run command to deploy:
ANSIBLE_VAULT_PASSWORD_FILE=.vault_password.txt ansible-playbook -v -i deploy/ansible/inventories/staging deploy/ansible/site.yml
- Finally, visit the: