我已经安装了 FileConveyor 和 django cumulus(它是 mosso 的替代品)。我创建了一个测试目录,/home/drupal/conveyortest
将其用作scanPath。
当我启动 FileConveyor 守护进程时,我被告知 js 和 css 文件正在同步(并被删除)。当我查看我的 CloudFiles 容器时,我看到该static/views_slideshow_galleria
文件夹已创建,但其中没有文件。应该有一个css文件和一个js文件,但是没有。
我究竟做错了什么?
- WARNING - Created 'cumulus' transporter for the 'cloudfiles' server.
- WARNING - Deleted '/home/drupal/conveyortest/views_slideshow_galleria/views_slideshow_galleria.css' as per the 'CSS, JS, images and Flash' rule.
- WARNING - Synced: '/home/drupal/conveyortest/views_slideshow_galleria/views_slideshow_galleria.css' (CREATED).
- WARNING - Deleted '/home/drupal/conveyortest/views_slideshow_galleria/views_slideshow_galleria.js' as per the 'CSS, JS, images and Flash' rule.
- WARNING - Synced: '/home/drupal/conveyortest/views_slideshow_galleria/views_slideshow_galleria.js' (CREATED).
- WARNING - Synced: '/home/drupal/conveyortest/views_slideshow_galleria/views_slideshow_galleria.css' (DELETED).
- WARNING - Synced: '/home/drupal/conveyortest/views_slideshow_galleria/views_slideshow_galleria.js' (DELETED).
这是我的 config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<config>
<!-- Sources -->
<sources ignoredDirs="CVS:.svn">
<source name="drupal" scanPath="/home/drupal/conveyortest" documentRoot="/home/drupal/conveyortest" basePath="/" />
</sources>
<!-- Servers -->
<servers>
<server name="cloudfiles" transporter="cumulus">
<username>myusername</username>
<api_key>myapikey</api_key>
<container>FileConveyorTest</container>
</server>
</servers>
<!-- Rules -->
<rules>
<rule for="drupal" label="CSS, JS, images and Flash">
<filter>
<extensions>ico:js:css:gif:png:jpg:jpeg:svg:swf</extensions>
</filter>
<processorChain>
<processor name="filename.SpacesToDashes" />
</processorChain>
<destinations>
<destination server="cloudfiles" path="static" />
</destinations>
</rule>
</rules>
</config>