Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 Vagrant 很陌生,我发现需要更新提供的 *.sh 脚本(链接在我的 Vagrant 文件中)。最佳做法是什么?我应该删除盒子并重新创建它吗?或者更确切地说“流浪者停止”并再次执行“流浪者规定”?谢谢
根据您的 scipts 的工作方式,这可能就足够了:
vagrant provision
如果您的脚本需要一台普通机器来运行,您需要先销毁已经配置好的机器:
vagrant destroy && vagrant up