Currently we can deploy from a folder
surge /path/of/site <domain> --token <token>
It would be nice to have an option such as
surge /path/of/site.zip <domain> --token <token>
so the entire site can be uploaded from a zip file.
This comes handy when sites are compiled in cloud and stored as zip. Currently we have to download in a cloud function, unzip in /tmp and run the command, then clean out the files. Doable but since it internally zips the folder anyways, it will be much cleaner to pass the zip directly.
Currently we can deploy from a folder
It would be nice to have an option such as
so the entire site can be uploaded from a zip file.
This comes handy when sites are compiled in cloud and stored as zip. Currently we have to download in a cloud function, unzip in /tmp and run the command, then clean out the files. Doable but since it internally zips the folder anyways, it will be much cleaner to pass the zip directly.