How to Create an App on App Platform

  1. Go to https://cloud.digitalocean.com/apps and click Create App.
  2. If connecting for the first time, you will see an empty repository list and will need to click the link labeled Configure your GitHub permissions, then refresh this page.
  3. Select the repository that contains your source code, and click Next.
  4. Enter a name for your app, choose the region where you'd like your app to be hosted, and specify the branch 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, 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 options 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.
  5. 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.
  6. 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.
  7. Select a plan, and click Launch App.
Build and deploy your app in the cloud directly from GitHub with App Platform.
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.
A buildpack is an open-source script that compiles apps as container images for a given programming language.
Create and configure a static site in App Platform
Create and configure background workers in App Platform
How to add capacity to your app in App Platform by scaling the number of containers.
A region is a physical location in the world where DigitalOcean has a datacenter that can run your App Platform app.
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).
Create and configure services in App Platform