Ask A Question

Notifications

You’re not receiving notifications from this thread.

Migrating Application from Heroku to Hatchbox AWS - rails console fails

David asked in Rails

I started migrating the application from Heroku to AWS using Hatchbox. The deployment was successful. But when I tried accessing the rails console, I'm getting a NameError.

/home/deploy/app-stg/shared/bundle/ruby/3.3.0/gems/irb-1.11.2/lib/irb/workspace.rb:9:in `<main>': uninitialized constant IRB (NameError)

IRB::TOPLEVEL_BINDING = binding
^^^
Did you mean?  ERB
    from /home/deploy/app-stg/shared/bundle/ruby/3.3.0/gems/irb-1.11.2/lib/irb/context.rb:7:in `require_relative'
    from /home/deploy/app-stg/shared/bundle/ruby/3.3.0/gems/irb-1.11.2/lib/irb/context.rb:7:in `<main>'
    from /home/deploy/app-stg/shared/bundle/ruby/3.3.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
...

Ruby: 3.3.0
Rails: 7.1.3

irb works correctly. Only rails console fails.

Has anyone had a similar problem?
Thanks

Reply

It's not a Hatchbox-related issue but a MissionControl Jobs gem.

https://github.com/basecamp/mission_control-jobs/issues/42

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 87,563+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.