Learn about the easiest deployment method to get started: deploying via Git Push
git push
to push your code repository to a Git Remote provided by Aptible.master
and main
attempt to deploy the incoming code before accepting the changes.aptible-scan
checks that the repo is deployable, usually by verifying the dockerfile can be built.aptible deploy --git-commitish $BRANCH_NAME
CLI command. This can also be used to synchronize code and configuration changes.
When pushing multiple refs, each is processed individually. This means, for example you could check the deployability of your repo and push to an alternate branch using git push $APTIBLE_REMOTE $BRANCH_NAME:aptible-scan $BRANCH_NAME
.
APTIBLE_PRIVATE_REGISTRY_USERNAME
APTIBLE_PRIVATE_REGISTRY_PASSWORD
FROM
declaration to depend on a private image and push your Dockerfile to Aptible. Credentials can be set in the following ways:
aptible config:set
CLI command:git push
to deploy. There are two solutions to this problem.
aptible config:set
, deploy using git push aptible master
, and restart your app to apply to apply the configuration change before the deploy can start. This approach is slower.How do I deploy with Git Push?
How do I switch from deploying via Docker Image to deploying via Git?
How do I access configuration variables during Docker build?
How do I synchronize configuration and code change?