You can make commits and uploads using Client or Application. You
just need a squarecloud.File object and pass the path where your
zip file is.
Making a commit
Using Client
Using Application
Making a upload
To upload an application, you can use only the [Client].
Remember that to upload an application you need a zip that contains (at least) the following files::
- Main file: responsible for starting your application
- Dependencies file: contains information about which dependencies are necessary
- Configuration file (squarecloud.app): a configuration file specifying the
name,
description, main file name, version, etc. To learn more about the
configuration file, take a look at this guide.
For your convenience, a class has been added to create this configuration file:
squarecloud.utils.ConfigFile.