Hi there! I’m trying to SSH into my machine and access the Rails console
My app deploys as usual, but whenever I try to run
app/bin/rails c, I get the following error:
/usr/bin/env: ‘ruby’: No such file or directory
When I try to check the ruby version with
ruby -v, I get the following error:
-bash: ruby: command not found
Everything was working fine a week ago — any ideas what’s going on?
Hmm it looks like the command to run the rails console has changed since last week. For now, I’m using the following command:
fly ssh console --pty -C "/app/bin/rails c"
Oh, I think you got caught in between a change being merged and its announcement.
We’ve switched SSH sessions to run in the image’s
WORKDIR instead of the root, which tends to align better with what people want when trying to SSH into a running app.
Regardless, happy you got it working again!
June 2, 2023, 6:09pm
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.