Few Servers

Keyword DEPLOY · from our Short

The deploy said Success. The container kept restarting.

We typed a base directory that did not exist in the repo. Railpack built an image from an empty folder: a green badge, zero errors, and a container that restarted every few seconds.

The checklist

  1. Open the runtime logs, not just the deployment badge.
  2. On the server: docker ps. Up means running; Restarting means it has nothing to run.
  3. Set the base directory to the folder that holds the package.json (or your app's entry file).
  4. Redeploy and watch the runtime logs until the app prints that it is listening.

The full write-up