- install the
ibmcloud
cli - create a project folder for your website
- create or copy into the folder the html and other resources (images, css, etc) you want serve from your website make sure there is an index.html file
- open a commnd terminal and change directory to your project directory
- login to your IBM Cloud account:
ibmcloud login
- use the CloudFoundry mode to target your cloud organisation and space to host your website:
ibmcloud target --cf
- get a list of supported runtime buildpacks:
ibmcloud cf buildpacks
-- look for staticfile_buildpack - pick a hostname for your website -
<mysitename>
- push the website to the cloud:
ibmcloud cf push -b staticfile_buildpack -m 48M <mysitename>
- once the push completes, look for the fully-qualified domain name (FQDN) of your website -
routes: <mysitename>[.something].mybluemix.net
- check in browser:
https://<mysitename>[.something].mybluemix.net