Y
Y
Yeldos Adetbekov2017-03-20 18:10:48
Nginx
Yeldos Adetbekov, 2017-03-20 18:10:48

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

1 answer(s)
A
Andrey Shubin, 2017-03-21
@idegree

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 question

Ask a Question

731 491 924 answers to any question