# Question about local databases and pushing to Heroku

**URL:** <https://forum.freecodecamp.org/t/question-about-local-databases-and-pushing-to-heroku/79546>\
**Category:** General\
**Created:** [January 23, 2017, 3:55am UTC](https://forum.freecodecamp.org/t/question-about-local-databases-and-pushing-to-heroku/79546 "2017-01-23T03:55:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![JacksonBates](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jacksonbates/32/123402_2.png) [@JacksonBates](https://forum.freecodecamp.org/u/JacksonBates)\
**Post date:** [January 23, 2017, 4:35am UTC](https://forum.freecodecamp.org/t/question-about-local-databases-and-pushing-to-heroku/79546/2 "2017-01-23T04:35:59Z")

</div>

You can’t use local databases for a deployed app, you have to use a remote database.

I use [https://mlab.com/](https://mlab.com/) which is free if you use their ‘sandbox’ databases.

See this wiki article for details:

> **[How to deploy your MongoDB app to Heroku](https://forum.freecodecamp.org/t/guide-for-using-mongodb-and-deploying-to-heroku/19347)**
>
> In this guide let’s see how to work with MongoDB locally and with mLab for deploying it to Heroku. Alternatively you can also use mLab add-on in Heroku , It is free but it may require your credit card details. So, if you are not intrested in...

---

_[View the full topic](https://forum.freecodecamp.org/t/question-about-local-databases-and-pushing-to-heroku/79546)._
