Deploy Node.js App with GitLab CI/CD

Seulkiro Park
Mar 18, 2018 · 6 min read

GitLab Project

GitLab Project Dashboard

Node.js Express App

{
hello: "world"
}

Heroku Application Setup

Heroku Dashboard

GitLab CI/CD Configuration File

Setting HEROKU_API_KEY Environment Variable for Runner
Heroku API Key under Account Settings

Heroku Deployment

Ensuring that shared runners are enabled

Validation

Project Overview with an Active Deployment
Deployment Log
Happy Deployment
Heroku Dashboard
App in Production!

Conclusion

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade