adaptive-learning / flocs-web

Intelligent web application for learning computer science
GNU General Public License v3.0
0 stars 1 forks source link

Create docs and diagram of dev/production server communication #16

Open effa opened 7 years ago

effa commented 7 years ago

It would be extremely useful for quick understanding of how it works, because it gets complicated. Some quick notes:


There are 3 different settings/modes/environments:

  1. local development mode
  2. local testing mode
  3. staging and production

Local development

The fact, that 3rd parties' static assets are server by django-dev-server was just a hack to make it work, because we weren't able to change the port for these 3rd party assets (but there is probably no problem with this approach - hot reloading is only needed for our JS modules).

Local testing

Staging and production

effa commented 7 years ago

Btw, I have found that webpack offers a flexible proxy settings, which could be probably used to avoid the above mentioned hack with serving some static assets by django-dev-server and some by webpack-dev-server (see the examples in their docs).