Add push command
Use case
You have a Small Web web site and you want to update it from your local computer with the minimum of effort.
What it does
The push
command is used to sync a copy of a web site onto the local computer using conventional defaults for the Small Web.
Suggested implementation
To update your site that is hosted at aral.small-web.org
, the push
command, when run from a folder called aral.small-web.org
:
~/sites/aral.small-web.org> site push
Which you can also run by specifying the target folder explicitly. e.g.,
~/sites> site push aral.small-web.org
Is equivalent to the following sync-to
command:
site sync-to=site@aral.small-web.org:public
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 pull
(#222 (closed))