GoogleCloudPlatform / appengine-ruby

Optional integration library for the Ruby runtime for Google App Engine
Apache License 2.0
53 stars 21 forks source link

Support for Rails console #12

Closed jasonjho closed 6 years ago

jasonjho commented 7 years ago

Looks like tasks and exec commands are meant to support only synchronous operations. Are there any plans to allow a long-running remote Rails console using the same mechanisms under the hood?

dazuma commented 7 years ago

@jasonjho Not immediately. This was meant for ad-hoc "build" or "maintenance" tasks against production, the canonical example being database migrations. We deemed it important for such tasks to be logged and tracked, so under the hood it is using the container build service which gives you such facilities.

If you want to open an interactive production console, you can consider using Cloud Shell, or you can simply ssh into a running container. It should go without saying, of course, that running a Rails console against a live system can be very dangerous and comes with lots of caveats. The exec facilities of this gem were actually specifically written to give users a safer alternative.