Multiple projects in development using bedrock stack

Hi,

I have different projects using bedrock in my local machine and I found that they collide when I run $ vagrant upin both of them. I can not have both of them simultaneously up in my development machine, when one is up the other gets down.

Having a look to the logs looks like the port collision tries to be fixed by Vagrant but still does not work:

project 1:

==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports... `default: 22 => 2222 (adapter 1)`

project 2:

==> default: Clearing any previously set forwarded ports...
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...

How I can solve this problem and have more than a project running in my local machine simultaneously?

Cheers,
Vicens.

Just give them different IPs: https://github.com/roots/trellis/blob/625ca3f1417476a29dc8bef85ba2d92044c0883e/Vagrantfile#L35

Ups! so easy… my bad… :slight_smile: thanks!

This topic was automatically closed after 6 hours. New replies are no longer allowed.