Answer the question
In order to leave comments, you need to log in
Is it a good idea to run 2 hosts on nginx?
Hello, recently asked a question How to use SPA Vue.js partially on django? . Something was scary about merging webpack with django. This idea came up: If I do SPA, wouldn't it be easier to separate django from vue.js altogether? Let them work on their own, and only in vue access restapi. Is this the right approach? And if it's not difficult, could you explain how to build a config in nginx and gunicorn (I will use vue-cli)? Thank you.
Answer the question
In order to leave comments, you need to log in
Either as wostex wrote , or make api.domain.zone subdomain for api, and vue itself on domain.zone .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question