Make Http Call From Node To Python In Heroku Dyno
I've inherited a repository that contains both a NodeJS part and a Python part. The project structure is such that the NodeJS is at the root of the repository, and the Python piece
Solution 1:
Finally found it. Dynos can't communicate with each other via HTTP, only via queues. I can't find it in the docs anymore, but they state it somewhere.
So I changed my Procfile to only run one dyno:
web: npm start& sh -c 'cd ./Python/ && export PYTHONPATH=. && python other.py'
Now I can make my call to 127.0.0.1:2001
without any problems.
Post a Comment for "Make Http Call From Node To Python In Heroku Dyno"