@output = `echo \"#{variable}\" | python script.py`.
This will let you read standard out from a python script.
1–8 of 8 posts
@output = `echo \"#{variable}\" | python script.py`.
This will let you read standard out from a python script.
is this documented, or something you just stumbled upon?
is this documented, or something you just stumbled upon?
As for using Python, like another poster said it's included in most Linux distros, and Heroku is really just running a Linux distro at the end of the day. I imagine that if you wanted to run a really simple script they wouldn't care, but I wouldn't build my whole app around it, because they can turn it off at any time.
is this documented, or something you just stumbled upon?
most(all?) linux distros ship with atleast a minimal version of python. I guess that's the reason
is this documented, or something you just stumbled upon?
is this documented, or something you just stumbled upon?