Peter Ehrlich
Peter Ehrlich

Reputation: 7125

show app name in heroku console

If I run a console on heroku, it looks like this:

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

This seems a whole lot more dangerous than something like this:

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

Anyone know how to solve this?

Upvotes: 4

Views: 292

Answers (1)

Bruno Arueira
Bruno Arueira

Reputation: 314

@Peter,

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

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

Based on the example above this appeared very simple to implement.

Upvotes: 1

Related Questions