Use an editor
By default there is no editor on Heroku. To get one, you can use the heroku-nano plugin like this (or by installing as a plugin):
mkdir bin
cd bin
curl https://github.com/Ehryk/heroku-nano/raw/master/heroku-nano-2.5.1/nano.tar.gz --location --silent > nano.tar …