In this recipe, we'll make use of the cloudfiles (0.3.0)
plugin to upload files to a Rackspace Cloud Files container.
The Cloud Files service has the added benefit of providing a Content Delivery Network (CDN) service to all content hosted on it, by default.
In this example, we'll work with the basic project structure that we created in the Installing Grunt on a project recipe in Chapter 1, Getting Started with Grunt. Be sure to refer to it if you are not yet familiar with its contents.
The following example will also require a Rackspace Cloud account with an API key defined. We'll also need to create a Cloud Files container named myapp
and configure it to host a
static website.
Tip
Refer to the following URL for more information on configuring a Cloud Files container to host a static website:
http://docs.rackspace.com/files/api/v1/cf-devguide/content/Create_Static_Website-dle4000.html