• Applicable Software: General
  • Min Version Number: 00.01.00
  • Max Version Number: Not Applicable

Turn on upload-on-save

Set "upload_on_save": true in remote-sync-config.json. Every save now uploads that file to the remote target.

Exclude the right things

MokoDeploy supports two complementary exclusion lists:

  • ignore — glob patterns, e.g. ["node_modules/**", "dist/**", "*.log"].
  • ignore_regexes — regular expressions for anything globs can't express cleanly, e.g. secret-shaped names: ["\\.env.*", ".*\\.pem$"].

A file matching either list is never uploaded, even by upload-on-save.

Verify

Run MokoDeploy: Diagnose — it prints how many ignore globs and regexes are active, so you can confirm your exclusions loaded before trusting auto-upload. Part of the Moko VS Code suite.