Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

Setting Meta-Web-Index and Deleting Existing Files #5

@adilwali

Description

@adilwali

I have a couple core use cases that I'd like to support using CloudFiles. I thought I'd list them here to see if they are in the scope of what you're trying to do with this gem @rtgibbons

If they are, I can start hacking away at them as part of this grunt plugin. If not, no sweat!

  1. I want to clear out a container before uploading the 'new release' to it. (We are using our CloudFiles container to host a static site. So when we 'deploy' to staging/prod, we only want one copy of the files there.) Alternatively, we can use the sub-directory approach that you utilize here, but we'd need a way to symlink the root files to the newest build. So if we upload a build to '2013-02-23-build', we'd want container/index.html --> container/2013-02-23-build/index.html
  2. I want to set the Meta-Web-Index parameter via the RackSpace CloudFiles API. In the above example, we'd set the web-index to index.html. This way, if a user navigates to 'http://rackspace-container-url/', they would see the index page.

I suspect that the above two use cases would be reasonably common for anyone trying to deploy a static site to staging/production environments that are hosted entirely off of the CloudFiles CDN. (Ie, the difference between staging/prod is just a bucket-name.)

Let me know what you think!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions