From f62b6e2e9c6df499496b7df229010ae8162b5d63 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Wed, 23 Jun 2021 17:35:51 +0200 Subject: [PATCH] Add more docs [ci skip] --- README.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7932853..521d9cc 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,28 @@ This repository is a copy of [coop-cloud/mastodon](https://git.autonomic.zone/co 1. `abra app new mastodon` 1. Follow the [secrets setup docs](#secrets-setup) 1. `abra app YOURAPPDOMAIN config` - be sure to change `DOMAIN` to something that resolves to your Docker swarm box -1. `abra app YOURAPPDOMAIN setup` to setup the database and create the admin account (services will stop flapping shortly after) +1. `abra app YOURAPPDOMAIN deploy` to deploy the app + +You'll need to run a `docker exec -it /bin/bash` and do the following: + +``` +export OTP_SECRET=$(cat /run/secrets/otp_secret) +export SECRET_KEY_BASE=$(cat /run/secrets/secret_key_base) +export DB_PASS=$(cat /run/secrets/db_password) +bundle exec rake db:setup +``` + +Then, on your host (outside of the containers), you'll need to fix permissions for the volume (see [#2](https://git.autonomic.zone/coop-cloud/hometown/issues/2)): + +``` +chown -R 991:991 /var/lib/docker/volumes/_app/_data +``` + +And finally, within any app container, create an admin account: + +``` +tootctl accounts create --email --confirmed --role admin +``` [`abra`]: https://git.autonomic.zone/autonomic-cooperative/abra [`coop-cloud/traefik`]: https://git.autonomic.zone/coop-cloud/traefik