Somebody asked me the other day if it was possible to build a simple, static website using Bluemix. With a bit of thought, I managed to get one going that used the nginx buildpack, but it turns out there’s an even simpler solution. On the CloudFoundry community site on GitHub there’s a “static file” buildpack that is just what you’re looking for. Given this, it’s just a handful of steps to get a static website going:
- Create a project at IBM Devops Services (with the “Deploy to Bluemix” flag checked)
- Create a manifest file with the buildpack: set to the static file buildpack
- Pour in some html content
- Enable the pipeline
- Commit your source to the repo
Ok, even though that’s pretty easy, it might be a bit hard to get right if you’ve never done it before. So here’s an even simpler solution…
That will take you through all the steps above, setting you up with a project to work in at IDS with example starting content for your website, and then deploying the site and finally taking you right to your application’s dashboard on Bluemix. All you have to do is edit the html files to be what you want, commit them to the repo, and you’re done.
It even works if you don’t have a Bluemix account yet (although you’ll be asked to sign up for one).
Now that’s simple!