Command line restore for web only container can't load thor

No joy with bundle exec. Then it can’t connect to the database.

And I tried doing a gem install thor first, but that didn’t solve it either.

And I also tested it on a plain old single-container install. (I didn’t think that was it.)

It used to work: Is there any way to restore your site from backup in the terminal? . And I thought I’d done it recently.