Open sj26 opened 5 years ago
Apologies for the delay and appreciate the feedback! As currently it's under developer preview, happy to taking this as an feature task for us to investigate on! Will update once we have discussed some design thoughts.
@sj26 Were you able to move forward with running the rails console?
Not using this tool, no. We’re still planning to move to fargate, but probably using custom deployment tooling and will need to invent an ssh-based rails console or something first.
Last I looked at this, I wasn't sure of a way to do it. I'm open to ideas and pull requests.
I did a proof of concept which uses an ecs service with a single fargate task running ssh which uses rails console as the shell command, and so you can ssh straight into a rails console. Ideally I'd love to leverage session manager as part of this solution.
In a perfect world, I'd love a way to use session manager to request a rails console, and have it run a fargate task on demand to service the session.
This is a great approach to deploying rails on Fargate! But I've always become stuck when trying to figure out how to open a production console. This is a frequently-used diagnostic and migration tool for most rails deployments.
How do you recommend running an interactive
rails console
in a production environment on Fargate?