Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

BartHuis's avatar

Homestead/vagrant share settings, best practice?

Hi, We would like to use vagrant/homestead for our laravel project. we're working with 3 colleagues and want to run all on the same settings. what is best practice to share those settings via git? adding my whole envoirement to git? or only my yml settings? Bart

0 likes
4 replies
Guardian's avatar

Hi @BartHuis ,

AFAIK you can just share the Homestead.yml file (via git or something like this). As this contains the Homestead setup.

Of course this would mean that the settings in that file need to match the environments (docroot paths etc) of your colleagues .

1 like
BartHuis's avatar

Thanks. I'll try some. If somebody has some better idea's, let me know :)

1 like
aryowirastomo's avatar
Level 5

As i know, homestead is for local environment. so if you want have same environment you need to install with a same configuration.

Like @Guardian said, you can share Homestead.yml and /etc/hosts configuration to your colleagues.

and then run vagrant up --provision

2 likes
BartHuis's avatar

with only transfering the yaml, its works fine for the first setup, let's see how it works out when we got more code transfering by git and everybody does the migrations.

Please or to participate in this conversation.