demandware上载文件监视程序。使文件与沙盒保持同步,这样就不必使用eclipse
dwupload的Python项目详细描述
dwupload程序是一个demandware盒式文件观察程序。脚本监视文件系统并同步 通过WebDAV使用沙盒的文件。该脚本假设您正在从墨盒根路径(例如 /一些/path/cartridges/this path将包含下面的dw墨盒。
该脚本假设您的所有盒带都在一个文件夹中,这可能会根据使用情况而改变。目前 对于我的用例,我们的git存储库在一个文件夹中包含我们所有的墨盒。
如果墨盒路径设置不正确,程序可以擦除沙盒上的所有文件。要解决这个问题,只需运行 一个干净的使用DeMeWorksStudio,然后尝试修复根监视路径。你也可能遇到问题,如果双方都要求 studio和dwupload脚本都在运行,但到目前为止我还没有遇到问题。
这个脚本已经在10.8.5和WindowsXP/7上测试过了。你的里程可能不同。
开始
- Install Python 2.7 if it’s not already installed
- Install setuptools
- Run python setup.py install
- Create a configuration file there is an example in the dwupload package.
- On unix based systems you can create .dwsettings in your home folder. This might work on windows, but has not been tested
- If you have .dwsettings just run dwupload to start the file system watcher.
- If you do not have .dwsettings you can specify the -c flag to supply the path to the config file
- Alternatively you can add the DWUPLOAD_CONFIG_PATH environment variable so you do not have to specify the config path every time
- Use dwupload -h to see the program’s help text
0.1.4条 - -在一个配置文件中添加了多个配置,其中包含section\u name参数 -如果出于安全原因密码未存储在配置中,则提示用户输入密码
0.1.3条 -
- 在启动时添加了连接测试,以确保连接正常工作或将因错误而失败
0.1.2条 -
- 修复了在Windows 7上锁定文件以防止脚本处理连续上载的错误
0.1.1条 -
- Windows上URL路径的错误修复
- 修复了不允许通过命令行重写配置的错误
- 已删除日志记录语句
0.1
- 初始版本