Select the repository that contains your source code, and click Next.
Enter a name for your app, choose the region where you’d like your app to be hosted, and specify the branch or tag in your repository that contains your app’s source code. If you’d like to automatically re-deploy your app when pushing to this branch/tag, select Autodeploy code changes. Click Next.
App Platform will inspect the code and select an appropriate runtime environment (such as Node, Ruby, etc). If you need to override this, you can see if there is a better option in the drop-down labeled Type as well. If nothing suitable appears there, upload a Dockerfile to your branch and restart the app creation process.
App Platform will display build and run commands that it detected, which you can now customize as needed.
If the use of environment variables is required, click Edit and supply them. Click the Encrypt checkbox to ensure a variable’s value is obscured in all build, deploy, and application logs.
If your app needs a database, you can add a dev database or an existing managed database from your DigitalOcean account. The connection details for your database will be accessible via environment variables so that they can be conveniently accessed in your code.
The build and run commands are the command-line statements that compile your app component at build time and launch your app component after it has been built, respectively.
Scaling is the process of adding more capacity to a component in your app, either horizontally (more containers) or vertically (more CPU and memory per container).