From daeadee5fd4aa09182d5d1ad1d3fca12d9b033fc Mon Sep 17 00:00:00 2001 From: sneak Date: Tue, 10 Dec 2019 20:08:52 -0800 Subject: [PATCH] update readme --- README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0bee8db..5b8b1e5 100644 --- a/README.md +++ b/README.md @@ -89,11 +89,18 @@ Google.) ``` # docker exec -ti /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 --email --confirmed --role admin +mastodon@c81a376bf546:~/app$ RAILS_ENV=production envdir /state/envdir \ + bin/tootctl accounts create \ + --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`.