Deploying Your App
Handling all of the deployment steps manually is no longer necessary, as we have made efforts to set up everything on your behalf for continuous deployment.
Initial Deployment
Upon filling out the web app builder form fields and submitting, The Worker Bee performs some heavy lifting in the background to put everything in place for you. We do not store any of your secret keys in our database, as we only require them for talking to their respective services during your app's initial setup. These are some of the steps performed:
- If provided, inject custom domain throughout project and add domain to Cloudflare account for you
- Create a new GitHub repository on your account and automatically commit project startup contents to the repository for you
- Populate a GitHub Actions workflow file for automatic deployment to Cloudflare
- Create a D1 SQLite database on your Cloudflare account and upload the schema for your project's database
- Create a KV namespace on your Cloudflare account to handle the sessions of your project's users
Continuous Deployment
Your project generated by The Worker Bee is already set to deploy upon repository commits by using a GitHub Actions workflow. You can continue to use this continuous deployment method, and it will work, but GitHub has a limit to the amount of build minutes (time spent processing the workflow and deploying to Cloudflare) that you have per month.
An alternative method to continuous deployment would be to link your Cloudflare Workers and Pages with your GitHub repository via the Cloudflare dashboard. Cloudflare offers a much higher allowance for deployment minutes. Within the "Compute" section of the Cloudflare dashboard perform these steps:
- Click into the Pages/Worker service that you'd like to enable automatic deployment.
- Go to the "Settings" tab of the service and scroll down to the "Build" section.
- Press the "Connect" button in the "Git repository" box and choose the repository that was created by The Worker Bee upon project generation.
- If you'd like to fine-tune your automatic builds, you can have Cloudflare watch specific branches/directories and build only when repository commits occur withing those branches/directories.