Direct upload
In addition to the usual build workflow, you can also upload your site directly.
In order to do this, create a zip file of your public directory and use the
Upload
page to update your site. You can also create a site from a zip file by
choosing “upload zip file” after selecting Add site
.
Please note that the zip file is used exactly as provided. In particular, make sure to add the contents of your public directory to the zip file, not the directory itself. Otherwise, all of the public contents of your site might end up under e.g.
your-site.statichost.eu/public/...
.
CLI upload tool and API access
Uploading via our CLI tool or via our API is currently in beta. Contact support in order to participate.
In order to upload your public directory from the command lise, please use the provided CLI tool. It is a bash script that relies on the curl and zip programs. In order to use it, you could for instance do the following:
curl -o shcli https://www.statichost.eu/shcli
chmod +x shcli
./shcli your-site ./public
Please let me know if you need help with setting up the tool or if the provided bash script does not work for you.