小编Mik*_*rto的帖子

带有Hyper-V的Windows 10上的Vagrant错误

升级到Windows 10后运行:

$ vagrant up
Run Code Online (Sandbox Code Playgroud)

我们收到以下错误消息

An error occurred while executing a PowerShell script. This error
is shown below. Please read the error message and see if this is
a configuration error with your system. If it is not, then please
report a bug.

Script: get_vm_status.ps1
Error:

C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.7.4\plugins\providers\hyperv\scripts\get_vm_status.ps1 : Unable to
find type [Microsoft.HyperV.PowerShell.VirtualizationOperationFailedException].
At line:1 char:1
+ &('C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.7.4\plugins\prov ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Microsoft.Hyper...FailedException:TypeName) [get_vm_status.ps1], Ru
   ntimeException
    + FullyQualifiedErrorId : TypeNotFound,get_vm_status.ps1
Run Code Online (Sandbox Code Playgroud)

随着Vagrant 1.7.4.

有任何想法吗?

vagrant windows-10 vagrant-windows

5
推荐指数
1
解决办法
2285
查看次数

Windows:在部署到Amazon Beanstalk之前设置PHP文件权限

我最近转换到亚马逊的Elastic Beanstalk,这很棒,但我有一个问题,我无法修复或找到一个像样的解决方案.

使用$ git aws.push通过GIT进行部署时

我的文件已部署,但我的所有文件夹和文件都没有正确的权限.目前正在运行带有xampp的Win 8进行本地开发.例如,在最近的WordPress部署中,我的所有文件夹在部署到beanstlak后都是777.它也是文件所在的NTFS分区.

SSH和运行很容易:

$  sudo su
$  find /var/www/html/ -type d -exec chmod 755 {} \;
$  find /var/www/html/ -type f -exec chmod 644 {} \;
Run Code Online (Sandbox Code Playgroud)

但是我宁愿在上传之前修复我的权限,但是我不认为这可以用于Windows.我确信我可以设置一个脚本或某种类型的服务挂钩来在部署时运行这些,但我希望可能有一个更简单的方法.

SO社区对设置Windows文件权限以匹配Apache的任何见解?

php windows apache amazon amazon-elastic-beanstalk

3
推荐指数
1
解决办法
1450
查看次数

Google Maps Api 3:未捕获的TypeError:无法调用未定义的方法'setCenter'

我一直试图让我的地理编码器今天早上工作以获取以下网址,但似乎无法弄清楚我做错了什么:http://www.dlplaw.com/media/map.html

单击编码时,地理编码器正在执行它的工作并返回正确的Lat/Long坐标,但它会挂起在setCenter上.

Uncaught TypeError: Cannot call method 'setCenter' of undefined
Run Code Online (Sandbox Code Playgroud)

我尝试在此处关注Google示例,但无法理解为什么这不起作用:http: //code.google.com/apis/maps/documentation/javascript/examples/geocoding-simple.html

提前致谢.

javascript maps

2
推荐指数
1
解决办法
1万
查看次数