Deploy Cloud Functions via Git
Deploying Cloud Functions via Git is a lightweight approach to managing Elements' powerful API functionality.
Last updated
Deploying Cloud Functions via Git is a lightweight approach to managing Elements' powerful API functionality.
Last updated
This section will describe how to upload your application's server code via Git.
Each application in your Elements instance has its own git repository where the server code resides, in the .
If you're running a local instance of Elements, your repository will be located at http://localhost:8082/code-serve/git/APPNAME
, where APPNAME is the name of the you created in Elements.
If your Elements instance is hosted remotely, you can find the repository at https://this.is.your.url/code-serve/git/APPNAME
.
You may find it useful to create a remote for your repository as well. For example:
A superuser account is required in order to push.
You may push your code up to the repository using normal git commands. For example:
In the above example, we are using the remote we established in the previous section.
In order to have Elements run the newly pushed code, you must restart certain containers:
api
app-serve
app-node
If you're running Elements locally, you can restart each of these containers with the docker restart
command.
TODO Update when hot code loading is implemented.