Hop makes it easy to deploy any Node.js application. This guide focusses on the deployment of an Express application, however it applies to any Node.js web application.Documentation Index
Fetch the complete documentation index at: https://docs.hop.io/llms.txt
Use this file to discover all available pages before exploring further.
Demo
We have created a demo application that you can deploy to Hop to see how it works. It’s a simple Express application that exposes a single endpoint that returns the hostname of the container it’s running on.Deploying the demo
- Fork node-express-app on GitHub.
- Create a new Hop deployment on the Console and select the GitHub repository you just forked.
- Hit
Deployand wait for the build to finish. - To expose your application to the web, create a Gateway and point it to port
3000.
Adding a health check (optional)
Health checks are a great way to ensure your application has zero downtime. Health checks insure that:- If your application is not responding to requests, Hop will automatically restart it, and
- when containers start, the health check must succeed before the container gets added to your Gateway (load balancer)
| Setting | Value |
|---|---|
| Path | / |
| Port | 3000 |