onedesign / generator-one-base

A foundation for One Design Company projects on the web.
Other
1 stars 1 forks source link

Feature/dynamic site url #112

Open mkornatz opened 6 years ago

mkornatz commented 6 years ago

Allows multiple domain names to be used for a single site when the APP_SITE_URL environment var is not set. This change is backwards compatible.

Example use case 1: the client wants to use an internal DNS record to point theirname.theirdomain.com to the same installation as our ourname.oneis.us site. Instead of having two separate installs, we can just have Craft dynamically adjust to the requested hostname.

Example use case 2: in development, you can leave off the APP_SITE_URL entirely and hit the site at any domain/port you have configured with your local web server.

mkornatz commented 6 years ago

This needs some testing before merging.