# Heroku deployment issue solved!

**URL:** <https://forum.codewithmosh.com/t/heroku-deployment-issue-solved/4757>\
**Category:** Node\
**Created:** [May 8, 2021, 3:02am UTC](https://forum.codewithmosh.com/t/heroku-deployment-issue-solved/4757 "2021-05-08T03:02:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pfabbi](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@pfabbi](https://forum.codewithmosh.com/u/pfabbi)\
**Post date:** [May 8, 2021, 3:02am UTC](https://forum.codewithmosh.com/t/heroku-deployment-issue-solved/4757/1 "2021-05-08T03:02:29Z")

</div>

Hey everyone!

To those who are struggling with deploying the app. These are the steps I had to do deploy it:

1. Create an account for MongoDB Atlas and create a cluster:  
[Get Started with Atlas — MongoDB Atlas](https://docs.atlas.mongodb.com/getting-started/)

2. Here are the changes I had to make in my program:

db.js:

![db](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/c/c2144525cc0e6dbc03a2ce03282ec3427e6b5035.png)

custom-enviroment-variables.json:

“vidly\_node\_js” is the name of my database in my MongoDB Compass.

![cev](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/1/146688f762b042d5e10c66627436e0538f7bc9fa.png).

1. Go to your Cluster and click “CONNECT”.

2. Click on “CONNECT USING MONGODB COMPASS”.

3. Select “I have a MONGODB Compass”.

4. Use verion 1.11 or earlier.

5. And on the heroku config:set I had to use **Quotation** marks for my connection string:

heroku config:set “Paste connection string here”

P.S. Make sure you replace username and password with your actual values.

1. git add .

2. git commit -m “Message”

3. git push heroku master

And that’s it!

---

<div class="post-metadata">

**Author:** ![Bravono](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/bravono/32/3426_2.png) [@Bravono](https://forum.codewithmosh.com/u/Bravono)\
**Post date:** [May 10, 2023, 7:39am UTC](https://forum.codewithmosh.com/t/heroku-deployment-issue-solved/4757/2 "2023-05-10T07:39:57Z")

</div>

Where can I set the name of my database in my MongoDB Compass? Is that the same as my cluster name when creating a new database? I guess not, because special characters are not allowed while choosing a name for your cluster.
