O'Reilly logo

Grunt Cookbook by Jurie-Jan Botha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deploying to Rackspace Cloud Files

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.

Getting ready

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required