How to Deploy Functions to Production

Functions are blocks of code that run on demand without the need to manage any infrastructure. Develop on your local machine, test your code from the command line (using doctl), then deploy to App Platform — no servers required. Learn more about functions.


The development namespace is a pre-production testing environment. We currently do not recommend using the development namespace for production deployments.

You can deploy functions to production using App Platform. First, structure your project correctly so that App Platform can correctly detect the functions and configuration you need.

Create a GitHub repository with the correct project structure in order to deploy your functions to production.

Next, upload your project to a GitHub repository.

Create a new repository on your personal GitHub account or any organization where you have sufficient permissions.
docs.github.com

Finally, create an App Platform app with a functions component based on that GitHub repository.

Create and configure functions in App Platform. Functions are blocks of code that run on demand without the need to manage any infrastructure.

After deployment, you can also set up alerts to monitor your Functions’ performance and trigger Function-level alerts.