Skip to main content

Demandware upload file watcher. Keeps your files in sync with your sandbox so you don't have to use Eclipse

Project description

The dwupload program is a Demandware cartridge file watcher. The script watches the file system and synchronizes files with your sandbox via webdav. The script assumes you are watching from the cartridges root path e.g. /some/path/cartridges/ this path would then contain your dw cartridges below.

The script assumes that you have all your cartridges in one folder, which may change depending on use cases. Currently for my use case our git repository contains all of our cartridges in one folder.

If the cartridge path is not set correctly the program can wipe all the files on your sandbox. To fix this simply run a clean using Demandware Studio and then try fixing the root watch path. You may also run into issues if both Demandware Studio and the dwupload script are both running, but I haven’t had a problem so far.

This script has been tested on both 10.8.5 and Windows XP/7. Your mileage may vary.

Getting Started

  • 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 — - Added multiple configurations in one config file with section_name argument - Prompt user for password if password is not stored in config for security reasons

0.1.3 —

  • Added connection test on startup to make sure connection is working or will fail with an error

0.1.2 —

  • Fixed bug that locked files on Windows 7 preventing script from working on consecutive uploads

0.1.1 —

  • Bug fixes for url paths on Windows

  • Fixed bug not allowing config to be overridden via the command line

  • Removed logging statements

0.1

  • Initial version

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dwupload-0.1.4.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file dwupload-0.1.4.tar.gz.

File metadata

  • Download URL: dwupload-0.1.4.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dwupload-0.1.4.tar.gz
Algorithm Hash digest
SHA256 25b7b37a838a862ff8f6e2e69e669ccd08fbbfabd6a1d08c313477d61ee2550e
MD5 8b914c661a16483fd9227c0576220069
BLAKE2b-256 460d02a4522fe41cb8f67a178406ec403c0390bd57da982f5c57462343c65a6c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page