This is an example workflow to show how to deploy Exograph as an Azure function.
- Docker
- azure-cli
- azure-functions-core-tools
cd
into this directory on a shell. Make sure you are logged into Azure:az login
.- Run
./create-azure-app.sh
to create a function app in Azure and follow the interactive instructions. - If needed, create a database and set
EXO_POSTGRES_URL
as an application setting in the Azure dashboard for your created function app. - Initialize the schema in your database:
$ exo schema create example.exo | psql ...
- Deploy your app using
./deploy.sh
:$ ./deploy.sh --appname <your function app's name> -c example.exo
- Visit the
ExographApi
invoke url printed in the console to access the playground:... Deployment completed successfully. Syncing triggers... Functions in exographtest: ExographApi - [httpTrigger] Invoke url: https://<your function app's name>.azurewebsites.net/api/exographapi ...