Get started
Quickstart
Create an account, connect GitHub and deploy your first app. Then every push deploys it again.
You need a GitHub account and a repository with a web app in it. If your code is on Bitbucket, start with Deploy from Bitbucket.
Create an account
- Go to Start for free and create your account.
- Sign in to the dashboard.
Connect GitHub
Dcubix reads your code through the Dcubix GitHub App.
- Install the GitHub App on your GitHub account or organization.
- Choose which repositories it can see. You can change this later in GitHub.
Each build fetches your code with a short-lived token that can only read that one repository.
Deploy your first app
- In the dashboard, create an app and choose the repository and branch.
- Dcubix reads the repository and proposes settings: the framework, the start command, a release command for database migrations, the processes to run and any environment variables the framework needs. Secrets it proposes, such as a
SECRET_KEY_BASE, are generated for you. - Review the settings. Add your own environment variables and pick the regions to run in.
- Create the app. The first deploy starts at once.
- When the deploy is live, open the app’s address. It looks like
https://shop-k3x9qz.<apps domain>, and it never changes.
Your app must listen on the port in the PORT environment variable, on 0.0.0.0. The start commands Dcubix detects already do. See Procfile and start commands.
What happens when you push
With automatic deploys on, every push to the app’s branch starts a deploy:
- Build. Dcubix fetches the exact commit and builds an image, with Railpack or with your Dockerfile.
- Release. The release command, if there is one, runs once. This is where database migrations run.
- Roll out. New instances start beside the old ones. Each old instance is removed once its replacement is ready, so the app keeps serving.
- Live. The new version is serving everywhere.
If the build or the release command fails, nothing changes: the running version keeps serving. If the new version crashes as it starts, Dcubix rolls back to the previous release on its own.
A push that arrives while a deploy is running waits for it to finish. If several pushes wait, only the newest is deployed.
Next steps
- Deploys and rollbacks: cancelling, redeploying and going back to an earlier release.
- The disk is temporary: where to keep files and data.
- Custom domains: serve the app on your own domain.