gpt4 book ai didi

laravel - 我可以在 `vagrant box update` 已经让机器运行的同时使用 `vagrant up` 吗?

转载 作者:行者123 更新时间:2023-12-03 21:45:38 24 4
gpt4 key购买 nike

我在 Laravel 有一些项目,当我不得不给他们一些维护时,有时我运行 vagrant up ,它警告我我有一个较新版本的 laravel 框 homestead,如下面的消息:

A newer version of the box 'laravel/homestead' is available! You currently
have version '1.1.0'. The latest is version '2.0.0'. Run
`vagrant box update` to update.

我的问题是,总是在我运行时 vagrant box update ,下载新版本的盒子花了十年时间,因为hashicorp的服务器似乎不够好处理......

考虑到这一点,我可以在安装机器的同时对我的项目进行维护,同时更新盒子吗?我真的不明白这是否真的可能,或者这会如何影响事情。

非常感谢,我希望问其他用户也有的问题。

最佳答案

Having that in mind, can I give maintenance to my project while putting the machine up, and in parallel, also update the box?



是的 - 您可以启动当前运行的 VM vagrant up并同时更新现有框 vagrant box update (您甚至可以从任何文件夹执行此操作,在本例中指向要更新的框 vagrant box update --box laravel/homestead )

请注意,该框用于在您第一次启动时创建 VM(vagrant 基本上是克隆该框以创建新 VM),因此如果您更新该框,它不会影响您当前的 VM

正如其他人所提到的,如果您希望您的虚拟机反射(reflect)盒子的更新(例如 3rd 方软件),那么是的,您需要销毁虚拟机并重新创建虚拟机(运行 vagrant up )

关于laravel - 我可以在 `vagrant box update` 已经让机器运行的同时使用 `vagrant up` 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42721065/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com