Skip to main content
Search

Deploying a Node.js app automatically from Git

Fetch your app from a Git repository and deploy on every push.

You can have the code of your Node.js app fetched from a Git repository. With a webhook, the app deploys automatically on every push.

Steps

  1. Go to Websites and open the website.
  2. Go to Website › Node.js.
  3. Under Source of the code, choose Git repository.
  4. Enter the Git address and the Branch and click Save.
  5. Under Deploy key, click Make a deploy key. Add the key to your repository, under the deploy keys, with read-only access.
  6. Click Deploy to fetch the first version.
  7. For automatic deploys: under Deploy automatically on a push, click Make a secret. In your repository, create a webhook for push events with the URL and the Secret from the panel.

Good to know

  • Only pushes to the chosen branch are deployed.
  • You can also fetch a public repository through an https address, without a deploy key.
Was this article helpful?