Build & deploy
Redeploy and auto-deploy
Ship new code manually, or automatically on every push to GitHub.
Redeploy by hand#
Open the project and press Redeploy. Dadisiweb fetches the latest commit of your branch, rebuilds, and swaps the new version in. Visitors keep seeing the old version until the new one is healthy.
You can also press Save changes after editing settings. If something affecting the app changed, a redeploy starts for you.
Auto-deploy on push#
Turn on Auto-deploy on push in Settings → Source. From then on, every push to the project's branch deploys the latest code automatically.
Requirements:
- The project must come from a GitHub repository.
- Your GitHub account must be allowed to manage webhooks on that repository (you need admin access to it).
- Pushes to other branches are ignored.
If we cannot create the connection on GitHub for you, the page shows the Payload URL and Secret to add yourself:
- In your repository on GitHub open Settings → Webhooks → Add webhook.
- Paste the Payload URL, set the content type to
application/json, and paste the Secret. - Choose Just the push event and save.
The secret is shown once. If you lose it, turn auto-deploy off and on again to get a new one.
If you switch repository or branch, auto-deploy is switched off, because the connection belonged to the old one. Turn it back on afterwards.
If a deployment is already running#
Deployments of one project never overlap. Pushing twice quickly results in one deployment of the newest code; pressing Redeploy during a build shows the build in progress.
Zip projects#
Projects uploaded as a zip are redeployed by uploading a new zip. See Deploy from a zip file.