app.your-awesome-site.com
.
Here is how you can set it up.
Steps
1. Add your domain
- Navigate to the specific environment dashboard (from Environments section)
- Click on Services tab to see all services
- In the Service dashboard, navigate to “Custom domain” tab.
- Enter your new domain and click save.
2. Verify your domain - Add CNAME records:
In this step you will verify the ownership of your domain by adding the CNAME records you see in above step. Go to your DNS registrar > DNS Zone and add the given CNAME records.After saving the DNS settings, it takes few minutes for the newly added DNS settings to propagate. Sometimes it may
also take up to 24 hours.
3. Deploy
Once you have added the given CNAME records to your domain’s DNS settings give it a few minutes for the DNS settings to propagate. Then, come back to Service > Custom domain settings page, and click on “Verify and deploy” button.If domain verification fails then give it few more minutes for the newly updated DNS settings to propagate and try
again. If it still fails then check whether you have properly configured the given CNAME records in your domain’s
DNS settings.
- configure your service to run on the custom domain you added and
- auomatically provison a brand new auto-renewing SSL Certificate for the custom domain
Access current domain
For your code/service to start reading the new domain, trigger a new deployment on your service. Either by pressing “Deploy” button in the service settings section. Or push a new commit on configured branch of the service. During this deployment, LocalOps fills environment variableLOPS_SVC_HOST
with the current active domain.