Add pull command
Use case
You have a Small Web web site and you want to update your local copy with what’s on the server.
What it does
The pull
command is used to sync a copy of a web site from the server onto your local computer using conventional defaults for the Small Web.
Suggested implementation
To download the latest version of your site that is hosted at aral.small-web.org
, the push
command, run the following from a folder called aral.small-web.org
__:
~/sites/aral.small-web.org> site pull
Which you can also run by specifying the target folder explicitly. e.g.,
~/sites> site pull aral.small-web.org
The conventions that are applied are:
- The name of the folder is the domain of the site.
- The account name on the server is
site
. - The published folder on the server is
~/public
. - The SSH key is at
~/.ssh/id_ed25519_aral.small-web.org
(and….pub
).
Also see
site push
(#221 (closed))