Guides
Deploy guides
Step-by-step guides to deploy each framework and stack on Hangar, from the repository to a live URL with HTTPS.
Deploy a Next.js app
Deploy a Next.js app on Hangar from a Git repository, with server rendering, a custom domain, HTTPS and a deploy on every push.
ReadDeploy Django with PostgreSQL
Deploy a Django app on Hangar with gunicorn, a managed PostgreSQL database, migrations on every release and static files served by WhiteNoise.
ReadDeploy any app with a Dockerfile
Deploy any language or framework on Hangar by building the Dockerfile in your repository, with a domain, HTTPS and a deploy on every push.
ReadDeploy a Ruby on Rails app
Deploy a Rails app on Hangar with the Dockerfile Rails generates, a managed PostgreSQL database, migrations on release and HTTPS on your domain.
ReadDeploy a Laravel app
Deploy a Laravel app on Hangar from Git with a managed MySQL or PostgreSQL database, queue workers, the scheduler and HTTPS on your domain.
ReadDeploy a FastAPI app
Deploy a FastAPI app on Hangar with uvicorn, a managed PostgreSQL database, Alembic migrations on release and HTTPS on your domain.
ReadDeploy a Node.js app
Deploy a Node.js server on Hangar, such as Express, Fastify or NestJS, from a Git repository, with a database, WebSockets and HTTPS.
ReadDeploy a Go app
Deploy a Go web server on Hangar from its repository, built as a static binary with no Dockerfile, with PostgreSQL and HTTPS on your domain.
ReadDeploy a Spring Boot app
Deploy a Spring Boot app on Hangar with Maven or Gradle and no Dockerfile, connect it to PostgreSQL and tune the JVM to the service's memory.
ReadDeploy a Flask app
Deploy a Flask app on Hangar with gunicorn, detected and started for you, with PostgreSQL, migrations on release and HTTPS on your domain.
ReadDeploy an Astro site
Deploy an Astro site on Hangar, as a static build served with compression and clean URLs, or with server rendering through the Node adapter.
Read