Skip to main content

Uploading a new application

api.PostApplications(reader) uploads a zip from any io.Reader and creates a brand-new application, returning a *squarecloud.ApplicationUploaded.
Description and Subdomain are only present when set in the config file.
The zip must contain your application’s entry point, its dependencies file and the squarecloud.app/squarecloud.config configuration file. See the config file guide.

Committing files to an existing application

api.PostApplicationCommit(appID, reader) uploads a zip into an already-deployed application, replacing the matching files.
To commit into a subdirectory instead of the application root, pass the path query parameter with rest.WithQueryParam:
Committing does not restart the application — send a restart signal afterwards if your change requires one: