'Connect to process running Rails console

I have a Rails console running in a process on my server (bundle exec rails c) and I'd like to be able to SSH into that server and "connect" to that process, as if I had started the Rails console myself.

Is that possible?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source