For final deployment, we need two servers:
- static file server for the compiled Ember app. "disquo.io"
- reverse proxy server for relaying CORS requests. "cors.disquo.io"
I see two options for this:
1. Both servers on the same machine.
Benefits:
- simpler DNS configuration
- could eventually be packaged into a single NPM module, with virtual host, proxy, and file server
Drawbacks:
- need a third server on the machine for virtual hosting between the other two servers, which means we need to be careful with request/response headers
2. github.io for file server, and dedicated machine for proxy
Benefits:
- reliable static file server
- easy to deploy application changes
- simpler dedicated machine - single server process instead of three
Drawbacks:
- code in two different places
For final deployment, we need two servers:
I see two options for this:
1. Both servers on the same machine.
Benefits:
Drawbacks:
2. github.io for file server, and dedicated machine for proxy
Benefits:
Drawbacks: