crofty 0.6.0 — deploy over SFTP and FTPS
crofty deploy used to mean Cloudflare Pages and nothing else. Now the same
built site can go to your own VPS over SFTP, or to shared hosting over
FTPS — you choose when you set the project up.
# your own server / VPS (over SSH)
crofty init --provider sftp --host example.com --user me --path /var/www/site
# shared hosting (secure FTP over TLS)
crofty init --provider ftps --host example.com --user me --path /public_html
Then crofty deploy uploads dist/ there. crofty asks for the password the
first time and keeps it in your OS keychain (SFTP can use an SSH key instead).
Cloudflare Pages stays the default and is unchanged.
A few things worth knowing:
- Plain FTP isn’t supported — FTPS reaches the same shared hosts without sending your password in the clear.
- The path is your web root, which is usually not your login home
(e.g.
/public_html,/var/www/site). - Cloudflare’s atomic swap and edge files (
_headers,_worker.js) are Cloudflare-only; a plain host gets a straight upload of your files.
Get it the usual way: brew upgrade crofty, scoop update crofty, or the
.deb/.rpm from the
GitHub releases.