generated from coop-cloud/example
Compare commits
2 Commits
435aa16638
...
e7898a5eea
Author | SHA1 | Date |
---|---|---|
decentral1se | e7898a5eea | |
decentral1se | 0178ee3560 |
|
@ -22,9 +22,10 @@ the [`abra.sh`](./abra.sh) for more.
|
||||||
|
|
||||||
1. `abra app new mastodon`
|
1. `abra app new mastodon`
|
||||||
1. `abra app cmd <domain> secrets --local`
|
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 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
|
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)):
|
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:
|
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
|
## Tips & tricks
|
||||||
|
|
10
abra.sh
10
abra.sh
|
@ -5,7 +5,15 @@ admin() {
|
||||||
export SECRET_KEY_BASE=$(cat /run/secrets/secret_key_base)
|
export SECRET_KEY_BASE=$(cat /run/secrets/secret_key_base)
|
||||||
export DB_PASS=$(cat /run/secrets/db_password)
|
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() {
|
secrets() {
|
||||||
|
|
Loading…
Reference in New Issue