Bruno Asked: 2022-10-16 14:00:46 +0800 CST 2022-10-16 14:00:46 +0800 CST 2022-10-16 14:00:46 +0800 CST Is it possible to upload an app to a vps server with back in django and front in react.js? 772 I developed a website that uses react.js and django, and my question is if it is possible to upload it to a vps server. reactjs 1 Answers Voted Best Answer Norvin Josué Bustamante 2022-10-16T18:34:21+08:002022-10-16T18:34:21+08:00 yes through the reverse proxy in your web server configuration, either nginx or apache. You must perform the deploy using the guide they provide. https://docs.djangoproject.com/en/4.1/howto/deployment/ so that it detects the urls of the react you must also configure it, in nginx location / { root /usr/share/nginx/html; index index.html; try_files $uri $uri/ /index.html?$args; } You could guide yourself with this article, it is well explained https://austinogiza.medium.com/deploying-react-and-django-rest-framework-with-nginx-and-gunicorn-7a0553459500
yes through the reverse proxy in your web server configuration, either nginx or apache. You must perform the deploy using the guide they provide. https://docs.djangoproject.com/en/4.1/howto/deployment/
so that it detects the urls of the react you must also configure it, in nginx
You could guide yourself with this article, it is well explained https://austinogiza.medium.com/deploying-react-and-django-rest-framework-with-nginx-and-gunicorn-7a0553459500