File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,6 +40,35 @@ the application to an external PostgreSQL database.
4040
4141 Detachments can be performed with ``deis config:unset ``.
4242
43+ Add Custom Domains to the Application
44+ -------------------------------------
45+
46+ You can use ``deis domains `` to add or remove custom domains to your application:
47+
48+ .. code-block :: console
49+
50+ $ deis domains:add hello.bacongobbler.com.com
51+ Adding hello.bacongobbler.com to finest-woodshed... done
52+
53+ Once that's done, you can go into your DNS registrar and set up a CNAME from the new
54+ appname to the old one:
55+
56+ .. code-block :: console
57+
58+ $ dig hello.deisapp.com
59+ [...]
60+ ;; ANSWER SECTION:
61+ hello.bacongobbler.com. 1759 IN CNAME finest-woodshed.deisapp.com.
62+ finest-woodshed.deisapp.com. 270 IN A 172.17.8.100
63+
64+ .. note ::
65+
66+ Setting a CNAME for your root domain can cause issues. Setting your @ record
67+ to be a CNAME causes all traffic to go to the other domain, including mail and the SOA
68+ ("start-of-authority") records. It is highly recommended that you bind a subdomain to
69+ an application, however you can work around this by pointing the @ record to the
70+ address of the load balancer (if any).
71+
4372Track Changes
4473-------------
4574Each time a build or config change is made to your application, a new :ref: `release ` is created.
You can’t perform that action at this time.
0 commit comments