当我试图跑步时获得以下内容Vagrant up.
尝试重新配置等.甚至尝试回滚(在Time Machine中)user/vagrant-local目录和vagrant-local网站所在的目录.
Vagrant使用的底层SSH库发生错误.错误消息如下所示.在许多情况下,此库中的错误是由ssh-agent问题引起的.尝试禁用SSH代理或删除某些密钥,然后重试.
如果问题仍然存在,请向net-ssh项目报告错误.
服务器版本协商期间超时
vagrant up第一次在Windows上运行时,我希望它先下载然后缓存该框。但是,如果我vagrant halt随后运行,vagrant up我最终将不得不等待15分钟才能下载并重新组装计算机。当我运行时vagrant box list,它指出它的基本框已在其中列出,那么我还需要做什么来使用缓存?
default: Downloading: https://atlas.hashicorp.com/ubuntu/boxes/trusty64/vers
ions/20150902.0.0/providers/virtualbox.box
default: Progress: 94% (Rate: 301k/s, Estimated time remaining: 0:01:20))
Run Code Online (Sandbox Code Playgroud)
我记得读某处的文件中,有一个config.vm.box_check_update,将导致它来检查每个更新版本当前框的vagrant up,但我没有看到它在上市Vagrantfile的WordPress的-VVV。
virtualbox vagrant vagrantfile vagrant-windows vvv-wordpress
我正在使用 Composer 构建自动 WordPress 部署,并将 wp-content 文件夹保留在主 WP 安装之外(因为我有一些自定义插件和主题),该文件夹是从 github 中提取的。
从 github 拉取并运行 Composer 后,我的文件夹结构如下所示:
-composer.php
-env.php
-public/
|-index.php
|-wp-config.php
|-wp-content/
|-themes/
|-plugins/
|-sunrise.php
|-wp/
|wordpress stuff
Run Code Online (Sandbox Code Playgroud)
我的 htaccess 规则在使用 MAMP 时运行良好,但我使用 VVV 作为我的开发环境,而 VVV 使用 nginx,因此我的重写规则不起作用。
VVV 使用 2 个conf 文件:一个文件由虚拟机上的所有站点共享(通用规则),另一个文件用于每个站点(基本上仅列出根目录)。
这是我的站点特定的conf文件:
server {
listen 80;
listen 443 ssl;
server_name auto.dev ~^auto\.\d+\.\d+\.\d+\.\d+\.xip\.io$;
root /srv/www/auto/htdocs/wordpress;
# my rules
# tells nginx to prepend "wp" to things
rewrite ^/(wp-.*.php)$ /wp/$1 last;
rewrite ^/(wp-(content|admin|includes).*) /wp/$1 last;
# end WP dir rules …Run Code Online (Sandbox Code Playgroud) 我是Vagrant的新手,我的目标是安装Varying Vagrant Vagrants.我正在按照VVV的GitHub页面中提到的步骤进行操作,但是在安装步骤4中提到的vagrant-hostupdater时我感到困惑.
当我尝试安装vagrant-hostupdater插件时,我收到以下错误.
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\Daniel>vagrant plugin install vagrant-hostupdater
Installing the 'vagrant-hostupdater' plugin. This can take a few minutes...
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:
Could not find gem 'vagrant-hostupdater (>= 0) x86-mingw32' in any …Run Code Online (Sandbox Code Playgroud)