How do I change my primary email

Before typing those commands do this

cd /var/discourse 
./launcher enter app 
rails c 

Then do the stuff you’re trying to do. Type exit a few times to get out of all of the stuff.