Deploy A NestJS Application in Heroku with GitLab CI/CD Pipelines

Deploy A NestJS Application in Heroku with GitLab CI/CD Pipelines

This file we going to configure our pipelines. In our pipeline, we have 4 specifications. image: specifying the version of NodeJS. Deploy a NestJS application in Heroku with GitLab CI/CD pipelines. How to deploy a NestJS Application in Heroku using GitLab CI/CD pipelines

How to deploy a NestJS Application in Heroku using GitLab CI/CD pipelines


In previous days I wrote a little tutorial explaining how to create a NestJS application  Create an API Rest With NestJS and PostgreSQL and now I will explain how to deploy it using GitLab Pipelines.


We need to create an account in  Heroku and  GitLab.

Please make sure that Node.js (>= 10.13.0) is installed on your operating system.



Once installed NodeJS we doing to install  NestJS CLI, Command Line Interface that help us to maintain our application.

Once installed, we going to execute the next command to create our project.

$ nest new project-name

You can find the core files in the src directory.

Core files

  • app.controller.ts: A basic controller with a simple route.
  • app.service.ts: A simple service.
  • app.module.ts: The root module of the application.
  • main.ts: The entry file of the application which uses the core function NestFactory to create a Nest application instance.

javascript heroku devops nestjs

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

How to Extend your DevOps Strategy For Success in the Cloud?

DevOps and Cloud computing are joined at the hip, now that fact is well appreciated by the organizations that engaged in SaaS cloud and developed applications in the Cloud. During the COVID crisis period, most of the organizations have started using cloud computing services and implementing a cloud-first strategy to establish their remote operations. Similarly, the extended DevOps strategy will make the development process more agile with automated test cases.

What Is DevOps and Is Enterprise DevOps Any Good?

What is DevOps? How are organizations transitioning to DevOps? Is it possible for organizations to shift to enterprise DevOps? Read more to find out!

DevOps Basics: What You Should Know

What is DevOps? What are the goals it helps achieves? What are its benefits? This article has answers!

Why You Should Be Adopting a DevOps Culture in 2020 - DZone DevOps

The year 2020 has arrived, and its arrival brings a lot of innovations and transformations in the Information and Technology (IT) sector to DevOps technologies.

Measuring DevOps Metrics: A How-To Guide

DevOps is supposed to help streamline the process of taking code changes and getting them to production for users to enjoy. But what exactly does it mean for the process to be "streamlined"? One way to answer this is to start measuring metrics.