update readme

This commit is contained in:
Jeffrey Paul 2019-12-10 20:08:52 -08:00
parent 7e2016e7a2
commit daeadee5fd
1 changed files with 11 additions and 4 deletions

View File

@ -89,11 +89,18 @@ Google.)
```
# docker exec -ti <container name> /bin/bash
root@c81a376bf546:~/app# su - mastodon
root@c81a376bf546:~/app# su -l --preserve-environment mastodon
mastodon@c81a376bf546:~$ cd app
mastodon@c81a376bf546:~/app$ RAILS_ENV=production envdir /state/envdir bin/tootctl accounts create <newusername> --email <your email> --confirmed --role admin
mastodon@c81a376bf546:~/app$ RAILS_ENV=production envdir /state/envdir \
bin/tootctl accounts create <newusername> \
--email <your email> \
--confirmed \
--role admin
```
If `WEB_DOMAIN` != `LOCAL_DOMAIN` make sure you have both set in your
If `WEB_DOMAIN` != `LOCAL_DOMAIN`, make sure you have both set in your
shell's environment (or in the envdir) before running tootctl to add your
user.
user. If you are running within a PaaS like Caprover or Heroku and you set
them in the GUI, they should be defined on the container itself and already
in your shell (and stay there with `--preserve-environment`). You can check
by running `env` before running `bin/tootctl`.