Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

szaboanna01's avatar

How to reach Python file from Laravel controller using Heroku?

I am working on a project where a controller calls a Python script with shell_exec(). Python script is in public folder. It works in localhost, but I have problems when I use Heroku. I tried to add a python buildpack to the application, but then I couldn't deploy the code. Is there any solution for this problem?

0 likes
0 replies

Please or to participate in this conversation.