Ad

Laravel Forge - How Multiple Servers Could Access Same Database

- 1 answer

I use Laravel Forge to deploy 2 web apps to the same VPC in AWS like following:

A server ( with MySQL installed ): - domain: test-erp.foo.com - ip: 3.112.70.152

B server: - domain: test.foo.com - ip: 13.230.27.11

I can access MySQL in A server, but I can not access the MySQL from B server. I need both two web apps to access the same DB and how can I config it in Laravel forge ?

Ad

Answer

You will need to create a security group for that VPC and a rule that allows the traffic that is needed. For reference.

Ad
source: stackoverflow.com
Ad