Deployment
This guide explains how the Homepage is deployed.
Services
Local
Github
Cloudflare
Runtime secrets
reads selected server-only values from local and syncs them to the Cloudflare Worker before pushing the deployment package. For annotations, edit only in ; deployment uploads that value as the Worker secret of the same name.
For production cohort personalization, set and in . The project ID is added to the deployed Worker's ; the dedicated API token is synced as a server-only Worker secret. Give that token and scope. Keep the browser SDK token () separate; it is not an API token and cannot be used for cohort lookup. Local development uses and .
Quick
Terminal: All
cd ~/Development/Artificial-Colleagues/Homepage-Builder/work
make commit m="<Message>"
make deployIndividual lines:
Terminal: Go to directory
cd ~/Development/Artificial-Colleagues/Homepage-Builder/workTerminal: Commit current changes
make commit m="<Message>"Terminal: Push and deploy
make deployConsiderate
Go to the directory of the Assistant:
Terminal
cd ~/Development/Artificial-Colleagues/Homepage-Builder/workTest the Homepage locally first:
Terminal
make devThen commit all changes to Github:
make commit m="<Message>"Finally deploy to Cloudflare:
make deployCheck the results:
Github
Cloudflare