> For the complete documentation index, see [llms.txt](https://feathersjs-mongoose.gitbook.io/feathers-mongoose-casl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://feathersjs-mongoose.gitbook.io/feathers-mongoose-casl/docs/utils/create-heroku-server.md).

# Create heroku server

Create a new heroku server with mongodb DB at mLab

This step is optional but you need a MongoDB server to continue

### **1 - Create a new app** [https://dashboard.heroku.com](https://dashboard.heroku.com/new-app)

![](https://1499183940-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LY13uPlo20E7hNPj1d2%2F-L_Yp6IP9hYt96UPBU0Z%2F-L_YpMNbrYptaF3U__nJ%2FovgmUUYA6r.gif?alt=media\&token=9afba239-2eb3-4de8-b11b-f9be6aaade9e)

### **2 - Add Mlab Add-ons**

inside heroku, go to resources tab and add a new Add-ons, look for mLab MongoDB

![](https://1499183940-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LY13uPlo20E7hNPj1d2%2F-LY1JHpStjHaXRbHFgc7%2F-LY1W3KZW_M0cAdkNdhs%2FScreen%20Shot%202019-01-18%20at%209.46.51.png?alt=media\&token=c63244c2-4ab2-452d-ba9c-01d090150100)

### **3 - Create a new DB user**

open mlab from heroku and create a new DB user

![](https://1499183940-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LY13uPlo20E7hNPj1d2%2F-LY1JHpStjHaXRbHFgc7%2F-LY1W7Ooq35mwVVOKZ0Q%2FScreen%20Shot%202019-01-18%20at%209.49.28.png?alt=media\&token=85942f82-b4bf-44e2-83f7-24f4c0e42e77)

### **4 -Update "mongodb" url inside config file**

open config\default.json\
update  "mongodb":  "[mongodb://\<dbuser>:\<dbpassword>@ds223685.mlab.com:62685/heroku\_djwq7vg7](mongodb://<dbuser>:<dbpassword>@ds223685.mlab.com:23685/heroku_dbwq7vg7)"\
\* don't forget to replace \<dbuser> and \<dbpassword"

```
git add .
git commit -m "Update mongodb url"
```

​​&#x20;
