0

I have a node js Dyno on Heroku and I've changed the script so it uses the npm python-shell module to communicate with a Python program I've written. I'd rather not translate the Python code to js as it is performance-sensitive and works best with certain python modules.

Is it possible to place the Python file in my deployment folder, push it to the Dyno and have it work somehow? I couldn't find much online for this.

Thanks a lot!

1 Answer 1

1

You can set up a node.js and Python environment on the same dyno by following Heroku's advice on using multiple build packs:

You can type this into the Heroku shell:

heroku buildpacks:add --index 1 heroku/python

You then need to add the relevant Python start command into your Procfile so that both your Python and Node applications run side by side.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.