Run Connectors With a Local cozy-stack
Running connectors to test them with a local cozy-stack gives a quick feedback loop but requires a little setup.
- Have a local cozy-stack installed
- Have NodeJS installed at the system level
Configure your local cozy-stack¶
Your local cozy-stack needs to know where to find the connectors runner on your filesystem. To this end, you’ll need to download the script from the cozy-stack repository (or clone the entire repository) and then set the path in your
cozy.yaml file as such:
# This top-level key might already exist if you used the template from the # cozy-stack repository konnectors: cmd: <absolute path to konnector-node-run.sh>
You can now restart your local cozy-stack and install your connector (for more information on how to run a connector from a local directory, check the connectors tutorial).