How is tootctl working?

if i call tootctl --help i get the following error…

$ ./tootctl 
Traceback (most recent call last):
	4: from ./tootctl:3:in `<main>'
	3: from ./tootctl:3:in `require_relative'
	2: from /home/mastodon/live/lib/cli.rb:3:in `<top (required)>'
	1: from /home/mastodon/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/home/mastodon/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- thor (LoadError)

Seems like i have to set some Enviroment Variables before?
Sorry i am not so firm with ruby :frowning:

You have to do it like that:

su - mastodon
cd /home/mastodon/live
RAILS_ENV=production bin/tootctl help

Thank you very much. As you described the envirorment variable was not set correctly…