1
0
Fork 0
forked from github/pelican

Adds Rackspace Cloud Files support to quickstart and fabfile

This commit is contained in:
Nicholas Kuechler 2013-06-11 21:43:23 -05:00
commit 6b68d94079
3 changed files with 30 additions and 2 deletions

View file

@ -18,6 +18,10 @@ SSH_TARGET_DIR=$ssh_target_dir
S3_BUCKET=$s3_bucket
CLOUDFILES_USERNAME=$cloudfiles_username
CLOUDFILES_API_KEY=$cloudfiles_api_key
CLOUDFILES_CONTAINER=$cloudfiles_container
DROPBOX_DIR=$dropbox_dir
DEBUG ?= 0
@ -41,6 +45,7 @@ help:
@echo ' dropbox_upload upload the web site via Dropbox '
@echo ' ftp_upload upload the web site via FTP '
@echo ' s3_upload upload the web site via S3 '
@echo ' cf_upload upload the web site via Cloud Files'
@echo ' github upload the web site via gh-pages '
@echo ' '
@echo 'Set the DEBUG variable to 1 to enable debugging, e.g. make DEBUG=1 html'
@ -92,8 +97,11 @@ ftp_upload: publish
s3_upload: publish
s3cmd sync $(OUTPUTDIR)/ s3://$(S3_BUCKET) --acl-public --delete-removed
cf_upload: publish
cd $(OUTPUTDIR) && swift -v -A https://auth.api.rackspacecloud.com/v1.0 -U $(CLOUDFILES_USERNAME) -K $(CLOUDFILES_API_KEY) upload -c $(CLOUDFILES_CONTAINER) .
github: publish
ghp-import $$(OUTPUTDIR)
git push origin gh-pages
.PHONY: html help clean regenerate serve devserver publish ssh_upload rsync_upload dropbox_upload ftp_upload s3_upload github
.PHONY: html help clean regenerate serve devserver publish ssh_upload rsync_upload dropbox_upload ftp_upload s3_upload cf_upload github