How to Deploy over SFTP Automatically
A practical guide to automated SFTP deployments with SENDR, including atomic swaps and zero downtime.
Why SFTP
SFTP tunnels file transfers over SSH. Because the server supports symlinks, SENDR can upload to a release directory and flip a symlink, so the live site never serves a half-written directory.
Steps
- sendr init and add an SFTP target (host + deployPath).
- Push your code; SENDR builds and uploads the artifact.
- SENDR swaps the symlink and the new build goes live.
Deploy
sendr deploy --wait