---
title: "Comment by Obong Daniel on \"How to host your Node API on Heroku using your Git Repository\" | Hashnode"
description: "Hi, what variables are we to set on the Reveal config part? I set it to the port number I used on my local host and my app crashed."
url: "https://hashnode.com/posts/how-to-host-your-node-api-on-heroku-using-your-git-repository/609a35571ea29f2c341e43ce/comment/60a5f2b94e7f9549fc32fe8f"
---

[Discussion](https://hashnode.com/posts/how-to-host-your-node-api-on-heroku-using-your-git-repository/609a35571ea29f2c341e43ce)

Comment [How to host your Node API on Heroku using your Git Repository](https://hashnode.com/posts/how-to-host-your-node-api-on-heroku-using-your-git-repository/609a35571ea29f2c341e43ce)

[Obong Daniel](https://hashnode.com/@Obongidiyake)

[May 20, 2021](https://hashnode.com/posts/how-to-host-your-node-api-on-heroku-using-your-git-repository/609a35571ea29f2c341e43ce/comment/60a5f2b94e7f9549fc32fe8f)

Hi, what variables are we to set on the Reveal config part? I set it to the port number I used on my local host and my app crashed.

[Tolu Olawumi](https://hashnode.com/@toluolawumi)

[May 20, 2021](https://hashnode.com/posts/how-to-host-your-node-api-on-heroku-using-your-git-repository/609a35571ea29f2c341e43ce/comment/60a5f2b94e7f9549fc32fe8f#reply-60a60c064e7f9549fc3301de)

Hey Daniel,

The variables for the config vars are all the variables you set in your .env file like your connection string and port. In your code, did your set your port like this: process.env.PORT || 6000.

[Obong Daniel](https://hashnode.com/@Obongidiyake)

[May 20, 2021](https://hashnode.com/posts/how-to-host-your-node-api-on-heroku-using-your-git-repository/609a35571ea29f2c341e43ce/comment/60a5f2b94e7f9549fc32fe8f#reply-60a614dd4e7f9549fc3302c9)

Yes, I did. And that's what I set it with. But my app crashed. [Tolu Olawumi](https://hashnode.com/@toluolawumi)

[Tolu Olawumi](https://hashnode.com/@toluolawumi)

[Jun 5, 2021](https://hashnode.com/posts/how-to-host-your-node-api-on-heroku-using-your-git-repository/609a35571ea29f2c341e43ce/comment/60a5f2b94e7f9549fc32fe8f#reply-60bb8e69e36d51141c95b0be)

Hey Daniel [Obong Daniel](https://hashnode.com/@Obongidiyake) , were you able to resolve this?
