Automate the delivery of CSS and JS files to S3 bucket.
Created
March 21, 2015 17:03
-
-
Save thelebster/07d3cd816136ed058f73 to your computer and use it in GitHub Desktop.
Example of config.xml for File Conveyor daemon #cimpleodev #drupal #aws
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <config> | |
| <!-- Sources --> | |
| <sources ignoredDirs="CVS:.svn:.swp:.git:tmp:.DS_Store"> | |
| <source name="drupal" scanPath="/var/www/htdocs" documentRoot="/var/www/htdocs" basePath="/" /> | |
| </sources> | |
| <!-- Servers --> | |
| <servers> | |
| <server name="cloudfront" transporter="cf"> | |
| <access_key_id>************</access_key_id> | |
| <secret_access_key>************</secret_access_key> | |
| <bucket_name>************</bucket_name> | |
| <distro_domain_name>************.cloudfront.net</distro_domain_name> | |
| </server> | |
| </servers> | |
| <!-- Rules --> | |
| <rules> | |
| <rule for="drupal" label="CSS and JS"> | |
| <filter> | |
| <paths>sites/default/files/css:sites/default/files/js</paths> | |
| <extensions>js:css</extensions> | |
| </filter> | |
| <processorChain> | |
| </processorChain> | |
| <destinations> | |
| <destination server="cloudfront" path="" /> | |
| </destinations> | |
| </rule> | |
| </rules> | |
| </config> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment