Last updated

Deploy an app

A server deploys straight from a GitHub repository and redeploys on every push. This page walks through a first deploy.

Create the server

Open Projects → Servers and click New server. Each server is its own subscription, so you choose a plan for it.

If your organization already has a Servers subscription that no server uses yet, it's waiting on the list as Server ready to set up. Click Set up server to use it instead of buying another.

Name it

Enter a Project Name, such as customer-portal, and click Continue.

Connect your repository

Click Connect GitHub. The first time, GitHub asks which repositories Deep Woods may use, then brings you back to the server's page. Choose your repository in Select a repository and click Connect Repository.

Deep Woods builds and deploys it. From then on, every push to your production branch deploys again.

Configure the build

Most frameworks are detected and need no changes. If yours needs something different, open the server and edit Build & Development Settings on the Overview tab:

  • Framework and Node Version
  • Region: where your app runs. Pick the one closest to your users or your database.
  • Build Command and Install Command: the same commands you run locally, such as npm run build.
  • Output Directory: where the build writes its files, if your framework doesn't use the default.
  • Root Directory: the folder your app lives in, if it isn't at the top of the repository.

Add environment variables

API keys, database addresses, and other settings go on the Environment tab, not in your repository. Click Add Variable, enter the name and value, and choose which environments it applies to. Turn on Sensitive for secrets, so the value can't be read back later.

Redeploy after changing a variable so the app picks it up (Repository → Redeploy).

Previews and production

  • Every push to your production branch deploys to production.
  • Every other branch gets its own preview address, so you can check a change before it goes live. The server's Overview shows the Preview and Production addresses.
  • The Deployments tab lists each deployment and how it went.

Databases

A database is available on the Standard plan. See Servers plans.

Next

Connect your own domain.