This page documents deployments using dpl v1 which currently is the default version. The next major version dpl v2 will be released soon, and we recommend starting to use it. Please see our blog post for details. dpl v2 documentation can be found here.
Travis CI can automatically deploy your application to Scalingo application after a successful build.
Chose one of two ways to connect to your Scalingo account:
Connecting using a username and password #
Add your Scalingo username and your encrypted
Scalingo password to your
deploy: provider: scalingo user: "<Your username>" password: secure: "YOUR ENCRYPTED PASSWORD"
Connecting using an api key #
Add your encrypted
api_key to your
deploy: provider: scalingo api_key: secure: "YOUR ENCRYPTED PASSWORD"
Optional settings #
remote: Remote url or git remote name of your git repository. The default remote name is “scalingo”.
branch: Branch of your git repository to deploy. The default branch name is “master”.
app: Only necessary if your repository does not contain the appropriate remote. Specifying the
appwill add a remote to your local repository:
git remote add <remote> firstname.lastname@example.org:<app>.git
Running commands before and after deploy #
Sometimes you want to run commands before or after deploying. You can use
after_deploy stages for this. These will only be
triggered if Travis CI is actually deploying.
before_deploy: "echo 'ready?'" deploy: .. after_deploy: - ./after_deploy_1.sh - ./after_deploy_2.sh