quinnmil / summit

Comprehensive Mountaineering Resource
1 stars 0 forks source link

create subdomains #40

Open quinnmil opened 5 years ago

quinnmil commented 5 years ago

subdomains could look like api.summit.watch or beta.summit.watch. It looks like there's a few ways to do this, the most popular being vhost. https://expressjs.com/en/resources/middleware/vhost.html

This article explains how to do this using express-subdomain middleware, another option. https://www.caffeinecoding.com/setting-up-subdomains-on-one-express-app-in-heroku/

I'm thinking we could have a login on beta.summit.watch, which would take you to our in-development version of the site. This could be useful to test a "real" deployment on a hosted server as well as to eventfully give out beta (or alpha) tester codes.