---
title: "Comment by Júnior Beto on \"How to Build a Server with Hanami::API and Postgres\" | Hashnode"
description: "What if you wanted different databases to each environment so you can test your application? kinda like rails do."
url: "https://hashnode.com/posts/how-to-build-a-server-with-hanamiapi-and-postgres/646407d16ea7ff5aa7e1588a/comment/649dba7b2a0936ab01ee0b43"
---

[Discussion](https://hashnode.com/posts/how-to-build-a-server-with-hanamiapi-and-postgres/646407d16ea7ff5aa7e1588a)

Comment [How to Build a Server with Hanami::API and Postgres](https://hashnode.com/posts/how-to-build-a-server-with-hanamiapi-and-postgres/646407d16ea7ff5aa7e1588a)

[Júnior Beto](https://hashnode.com/@juniorB)

[Jun 29, 2023](https://hashnode.com/posts/how-to-build-a-server-with-hanamiapi-and-postgres/646407d16ea7ff5aa7e1588a/comment/649dba7b2a0936ab01ee0b43)

What if you wanted different databases to each environment so you can test your application?

kinda like rails do.

[Carlos Armando Marcano Vargas](https://hashnode.com/@Carlos27)

[Jul 1, 2023](https://hashnode.com/posts/how-to-build-a-server-with-hanamiapi-and-postgres/646407d16ea7ff5aa7e1588a/comment/649dba7b2a0936ab01ee0b43#reply-64a0b0238db091c401034329)

Hey, Júnior, I hope you are very well. I didn't know you can do that with Rails. I'm very new in this ecosystem and in Ruby in general. But I don't know how to add different databases to each environment. Maybe you can find the answer asking here: [github.com/hanami/hanami/issues.](https://github.com/hanami/hanami/issues.) Or in its discourse site: [discourse.hanamirb.org](https://discourse.hanamirb.org/) Or in its subreddit: [reddit.com/r/hanamirb](https://www.reddit.com/r/hanamirb/)

Sorry, I can help you with your question. Thank you for your question.

Have a nice day.

[Júnior Beto](https://hashnode.com/@juniorB)

[Jul 3, 2023](https://hashnode.com/posts/how-to-build-a-server-with-hanamiapi-and-postgres/646407d16ea7ff5aa7e1588a/comment/649dba7b2a0936ab01ee0b43#reply-64a2c253fda312e2adb062a5)

thanks for the answer, have a nice day you too!! [Carlos Armando Marcano Vargas](https://hashnode.com/@Carlos27)
