How to Deploy Static File Content to Atos Cloud Foundry


Using the Nginx buildpack it is really simple to host static HTML sites on Atos Cloud Foundry

Set Up

Lay out your directory structure for your static app as you wish but you need to ensure that your app's root folder has an index.html or index.htm or Default.htm file as this will be served as the default page. 

We recommend having folders for your js, css and images. For example your directory structure might look like this:

- index.html
- about.html
- images/
-- logo.png
- css/
-- bootstrap.css
-- main.css
- js/
-- jquery.js
-- main.js


To deploy your static website via the command line simply navigate to your app's root folder and type 

cf push myapp -b
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request