自动加载我的homestead.yaml配置


Automate the laravel homestead to reload my Homestead.yaml configurations

安装宅地并添加盒子后,配置包含url homestead.app 的homestead.yaml

在做了upssh之后,转到/etc/nginx/sites-enabledhomestead.app就在那里。

因此,我在Homestead.yaml中将homestead.app从主机更改为site.daison.app,并再次执行homestead halthomestead up以及ssh,只是按照我的想法重新加载我的配置。

回到/etc/nginx/sites-enabledhomestead.app仍然保留。

所以我所做的是使用命令homestead destroy摧毁我的家园,并再次执行upssh,返回到/etc/nginx/sites-enabled,配置site.daison.app现在就在那里。

问题:有没有办法做到这一点,重新加载我的家园配置,而不是破坏它,一次又一次地做事?

转到创建家园的目录。键入终端

vagrant provision

宅地只是一个预先定义好的流浪箱。

文件:http://laravel.com/docs/4.2/homestead#daily-使用