Compare commits

...

2 Commits

2 changed files with 13 additions and 4 deletions

View File

@ -22,9 +22,10 @@ the [`abra.sh`](./abra.sh) for more.
1. `abra app new mastodon`
1. `abra app cmd <domain> secrets --local`
1. `abra app config <domain>`
1. `abra app secret insert <domain> smtp_password v1 <password>`
1. `abra app config <domain>` (uncomment SMTP details)
1. `abra app deploy <domain>`
1. `abra app cmd <domain> setup`
1. `abra app cmd <domain> streaming setup`
Then, on your host (outside of the containers), you'll need to fix permissions
for the volume (see [#10](https://git.coopcloud.tech/coop-cloud/mastodon/issues/10)):
@ -36,7 +37,7 @@ chown -R 991:991 /var/lib/docker/volumes/<domain>_app/_data
And finally, within the `app` container, create an admin account:
```
abra app cmd <domain> admin "<username>" "<email>"
abra app cmd <domain> admin -- <username> <email>
```
## Tips & tricks

10
abra.sh
View File

@ -5,7 +5,15 @@ admin() {
export SECRET_KEY_BASE=$(cat /run/secrets/secret_key_base)
export DB_PASS=$(cat /run/secrets/db_password)
tootctl accounts create "$1" --email "$2" --confirmed --role admin
RAILS_ENV=production bin/tootctl accounts create "$1" --email "$2" --confirmed --role Owner
}
setup() {
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
}
secrets() {