How do I deploy to my Datica environment?
First-Time Setup
- If you haven’t already, install The Platform CLI.
- Navigate to the root directory of your local repository (this is the directory that contains the
.git
directory). - Run the
init
command if you have not signed in already (the init command does this for you), replacingMyEnvName
andmy-code-service
with your environment’s name and your code service’s name both found in the Platform dashboard:
# If you have not signed in with the cli yet
datica init
Deploying Code
Push your local master
branch to the datica
remote (created when you ran init
):
git push datica master
If the branch you want to push is not master, run this instead:
git push datica my-branch-name:master
The build output will stream from Datica’s servers to your terminal. If the build is successful, your service will be redeployed.