Search code examples
passengerpyramidread-eval-print-loop

How can I get a REPL on a production-deployed Pyramid install?


One of the clear advantages of LISP environments (Clojure etc) is the ability to hook up and get a Read-eval-print-loop (REPL) on a running instance - thus being able to call production code and generally interact with the production system at runtime - via the REPL.

I am currently working with a Python/Pyramid stack that is deployed on top of Nginx/Phusion passenger - and I find myself many times being forced to "perform live surgery" on the DB, when in fact I would much prefer to call a function that exists inside the deployed Python code...

Is there a possibility to get a production-attached REPL for my setup?

Thanks in advance for any pointers.


Solution

  • I don't think there is a simple way to REPL in the same process, but you are probably looking for pshell.

    pshell production.ini