Show application name in heroku console

If I run the console on the hero, it looks like this:

heroku run console --app myapp-production irb(main):001:0> 

This seems a lot more dangerous than something like this:

 heroku run console --app myapp-production myapp-production:001:0> 

Does anyone know how to solve this?

+4
source share
1 answer

@Peter,

You need to create a plugin as follows: https://github.com/hone/heroku_colorize_console

And after running this heroku plugins:install <your_git_repo> .

In accordance with the above example, this turned out to be very simple to implement.

+1
source

Source: https://habr.com/ru/post/1438702/


All Articles