Great video! I’m currently struggling with the setup of replicas in development to track a bug I found in my staging environment regarding manual connection switching. Any advice on how to do this? Is there a rails way to do it? I’m currently exploring docker for this but it has a very steep learning curve
Docker might be handy here to make it easier to run two servers at once. I haven't setup a replica in Docker before, but for your own postgres servers, you typically need to edit the configs. Otherwise you could run two postgres servers on your local machine and just setup two different configs and start each server pointing to the different configs: blog.raveland.org/post/postgresql_sr/
Hi GoRails, I am new to rails...I did exactly same as your video but when I run rails db:create:all, the replica databases were not created only the primary database and the animal database were created. I have mentioned writing and reading role in the model also but still I am unable to find the replica databases which I define as by replica: true. Please help
I have 2 existing databases, basically legacy databases. I am trying to connect both the database using the same way that you have done, it is not working. What would be the problem? I am using Rails 6
You could make a friendlier price for us Brazilians, as some other course sites do. I want to subscribe, but I would like the price to be a little lower.
Can we use different type of databases? I mean to say can we use relational and non-relational databases in the same app?
Great video! I’m currently struggling with the setup of replicas in development to track a bug I found in my staging environment regarding manual connection switching. Any advice on how to do this? Is there a rails way to do it? I’m currently exploring docker for this but it has a very steep learning curve
Docker might be handy here to make it easier to run two servers at once. I haven't setup a replica in Docker before, but for your own postgres servers, you typically need to edit the configs.
Otherwise you could run two postgres servers on your local machine and just setup two different configs and start each server pointing to the different configs: blog.raveland.org/post/postgresql_sr/
Thanks again for a great video!
Glad you liked it, thanks for watching! 🙏
amazing video !
Nice work! i'm wondering if you could make a video on datagrid gem with rails 6. i would be grateful
Hi GoRails, I am new to rails...I did exactly same as your video but when I run rails db:create:all, the replica databases were not created only the primary database and the animal database were created. I have mentioned writing and reading role in the model also but still I am unable to find the replica databases which I define as by replica: true.
Please help
Your videos are really helpful. Thanks a lot 🙏
Glad you’re enjoying them! 🙌
I have 2 existing databases, basically legacy databases. I am trying to connect both the database using the same way that you have done, it is not working. What would be the problem?
I am using Rails 6
Is this database.yml syntax documented anywhere?
Thanks!
You could make a friendlier price for us Brazilians, as some other course sites do. I want to subscribe, but I would like the price to be a little lower.
Send me an email! I'm happy to help.