JavaScript SDK
Commit and Upload
In this section you will learn how to make commits and uploads using the Square Cloud JavaScript SDK.
Making a commit
application.commit()
is a method that allows you to commit a file to your application.
Making a upload
application.create()
is a method that allows you to upload a application to Square Cloud.
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.
Was this page helpful?