Home > database >  Disabling irb autocomplete on Heroku
Disabling irb autocomplete on Heroku

Time:01-20

A follow up to Disable irb autocomplete

I would like to disable IRB on Heroku, e.g. having an .irbrc with:

IRB.conf[:USE_AUTOCOMPLETE] = false

In the home directory of my heroku dyno/server

How can I do it?

CodePudding user response:

Your application's root directory ends up being the application's user's home directory at Heroku so you could put a .irbrc in your application's root directory. So add your .irbrc with IRB.conf[:USE_AUTOCOMPLETE] = false to your app's root directory so that it looks like this:

$ cd your_app_root_directory
$ ls -1A
.git/
...
.irbrc # <-----------------
...
Gemfile
Gemfile.lock
Procfile
README.md
Rakefile
app/
bin/
config/
config.ru
db/
...

Then, once you push everything up to Heroku, heroku run console will use that .irbrc.

  •  Tags:  
  • Related