I have created two projects one is python django and another is on Php as the backend. I want to connect its front end which is on flutter and put it on live .Suggests some ideas on how to do it.
Please share some feasible ideas
CodePudding user response:
Well you can serve it with different ports associated, you can run: django in port 80 and Apache for PHP over port 8080. They both work in different processes, therefore, they would not collide in any manner.
Another way to do this is using Docker technology where you can create a container to run PHP stack and another to run Django. At the end you would have to run it in different ports to serve the frontend.
CodePudding user response:
run django other port ex:8081 and run nginx config for subdomain:
https://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html
and run other subdomain for php .