Build & Run Command

The build command is the command-line statement that compiles your app component at build time. The build command should be geared towards installing all needed dependencies for your component to run, as every build starts from an environment that is empty other than the programming language runtime provided by the buildpack.

The run command is the command-line statement that launches your app component after it has been built. For example, if this is a service, this means that when the run command is complete, the proper HTTP routes and HTTP ports are open and ready to receive requests after executing the run command.

Both build and run commands can be compound (joined by && or separated by newlines) if you need to perform multiple actions at build or run time. App Platform will attempt to infer these commands at inspection time, however if it is unable to do so, you must set them manually.

Deploy an application using a monorepo
Create and configure a static site in App Platform
Create and configure background workers in App Platform
Build and deploy your app on push in the cloud with App Platform.
Create and configure services in App Platform