Skip to content

subZero Cloud


For deploying the app we'll need a account

Login with:

subzero cloud login
in a build script you can use:
subzero cloud login --email $SUBZERO_CLOUD_USER --password $SUBZERO_CLOUD_PASSWORD


To deploy a local project to, you'll need to link it with the application configured in your account (skip this step if you have already done this)

subzero cloud create-config --id <id>
This will create a file called subzero-app.json in the root folder of your project.


If you are managing your database schema in this project, make sure you have the database migrations folder ready for deploying it to your PostgreSQL instance (see Managing Migrations for details).

Now for the last part of the deployment do:

subzero cloud deploy --openresty-image-tag <tag>
where <tag> is the docker image tag of the openresty image that will be built and pushed to production, for example, it can be v1

In a build script you could run the command like this

subzero cloud deploy --dba $PRODUCTION_DB_SUPER_USER --password $PRODUCTION_DB_SUPER_USER_PASSWORD --openresty-image-tag $CIRCLE_TAG