copyright | lastupdated | ||
---|---|---|---|
|
2018-05-22 |
{:shortdesc: .shortdesc} {:tip: .tip} {:new_window: target="_blank"} {:codeblock: .codeblock} {:screen: .screen}
{: #updatingapps}
You can use the command line or {{site.data.keyword.Bluemix}} Continuous Delivery to update the applications in {{site.data.keyword.Bluemix_notm}}. In many cases, even for the buildpacks such as Node.js, you must also supply a -c parameter to specify which command is used to start your application. {:shortdesc}
Domains provide the URL route that is allocated to your organization in {{site.data.keyword.Bluemix_notm}}. To use a custom domain, you must register the custom domain on a public DNS server, configure the custom domain in {{site.data.keyword.Bluemix_notm}}, and then map the custom domain to the {{site.data.keyword.Bluemix_notm}} system domain on the public DNS server. After your custom domain is mapped to the system domain, requests for your custom domain are routed to your application in {{site.data.keyword.Bluemix_notm}}.
You can create and use a custom domain by using either the {{site.data.keyword.Bluemix_notm}} console or the command-line interface.
Complete the following steps to create a custom domain for your org by using the console:
- Go to Manage > Account > Cloud Foundry Orgs.
- Click the name of the org for which you're creating a custom domain.
- Click the Domains tab.
- Click Add a domain, and enter your domain name and select the region.
- Confirm your updates. Click Add.
As an example, you can use *.mycompany.com
to associate the route www.mybluemix.com
to your app. You can also use example.mycompany.com
to associate the route www.example.mybluemix.com
to your app.
{: tip}
Add the route with the custom domain to an application.
- Click the Menu icon > Dashboard, then click the row for the application that you want to add the route to. The Overview page is displayed.
- From the Routes menu, select Edit Routes.
- Click Add route, and specify the route that you want to use for the application.
- Confirm your updates by clicking Save.
-
Create a custom domain for your organization by typing the following command:
ibmcloud app domain-create <your org name> mydomain
-
Add the route with the custom domain to an application. For CF apps, type the following command:
ibmcloud app route-map myapp mydomain -n host_name
For container groups, type the following command:
cf ic route map -n host_name -d mydomain mycontainergroup
After you configure the custom domain in {{site.data.keyword.Bluemix_notm}}, map the custom domain to the {{site.data.keyword.Bluemix_notm}} system domain on your registered DNS server:
- Set up a 'CNAME' record for the custom domain name on your DNS server. Steps for setting up the CNAME record vary depending on your DNS provider. For example, if you use GoDaddy, you follow the Domains Help {: new_window} guidance from GoDaddy.
- Map the custom domain name to the secure endpoint for the {{site.data.keyword.Bluemix_notm}} region where your application is running. Use the following region endpoints to provide the URL route that is allocated to your organization in {{site.data.keyword.Bluemix_notm}}:
- US-SOUTH:
secure.us-south.bluemix.net
- US-EAST:
secure.us-east.bluemix.net
- EU-DE:
secure.eu-de.bluemix.net
- EU-GB:
secure.eu-gb.bluemix.net
- AU-SYD:
secure.au-syd.bluemix.net
In a browser or command-line interface, enter the following URL to access the myapp application:
http://host_name.mydomain
To remove an orphaned route, run the following command:
ibmcloud app route-delete domain -n hostname -f
{: tip}
domain
is the name of your domain, and hostname
is the host name of the route for your application. For more information about the ibmcloud app route-delete command, type ibmcloud app route-delete -h
.