Capistrano 在虚拟机中部署
我使用 Virtual box + gem Vagrant
一周前一切正常。
我已经把我的盒子打包了。现在我已经使用同一个项目再次部署了该盒子。
并且 Capistrano 输出了错误:
*** [err :: 33.33.33.10] creating symbolic link `/vagrant/demoapp/current/log'
*** [err :: 33.33.33.10] : Read-only file system
https:// gist.github.com/1746250(错误+deploy.rb)
我已经设置了 sudo chmod 777 -R 1vagrant/
但它仍然不起作用。
发生了什么?
I using Virtual box + gem Vagrant
One week before everything works well.
I had packaged my box. And now I've deployed the box again with the same project.
and Capistrano has outputted error:
*** [err :: 33.33.33.10] creating symbolic link `/vagrant/demoapp/current/log'
*** [err :: 33.33.33.10] : Read-only file system
https://gist.github.com/1746250 (error + deploy.rb)
I have set sudo chmod 777 -R 1vagrant/
But it still doestn't work.
What happen?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有一种解决方法可以使共享文件夹中的符号链接再次在 VirtualBox 4.1.8+ 上工作。基本上你需要发出这个命令:
你可以在 Vagrant 的上下文中执行此操作,方法是将其添加到 Vagrantfile 的
Vagrant::Config.run
块中:更多信息可以在 VirtualBox 错误 #10085。
请注意,分享
setextradata
技巧的评论者忘记告诉您密钥名称需要SHARE_NAME
。我发现了这个挖掘C代码!There is a workaround to make symlinks in shared folders work on VirtualBox 4.1.8+ again. Basically you need to issue this command:
You can do this in the context of Vagrant by adding this to the
Vagrant::Config.run
block of your Vagrantfile:More information can be found on VirtualBox bug #10085.
Please note the commenter that shares the
setextradata
trick forgets to tell you the key name requires theSHARE_NAME
. I found this out digging through the C code!Vagrant gem作者的官方回答:
https://github.com/mitchellh/vagrant/issues/713
Official answer of Vagrant gem's author:
https://github.com/mitchellh/vagrant/issues/713