Skip to content

Add support for uploading site via a zip file (reopen) #599

Description

@yusufnb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions