- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我在通过 Capistrano 运行 composer 时遇到错误“undefined variable: auth”。这里是运行 cap deploy -d 时的堆栈跟踪
--> Updating Composer dependencies..........................Preparing to execute command: "sh -c 'cd /path/to/site/public_html/releases/20141223155437 && SYMFONY_ENV=livetest /usr/bin/php composer.phar update -vvv --prefer-dist'"
Execute ([Yes], No, Abort) ? |y|
✘
*** [err :: server] [ErrorException]
*** [err :: server] Undefined variable: auth
*** [err :: server]
*** [err :: server]
*** [err :: server]
*** [err :: server] Exception trace:
*** [err :: server] () at phar:///path/to/site/public_html/releases/20141223155437 /composer.phar/src/Composer/Util/Git.php:133
*** [err :: server] Composer\Util\ErrorHandler::handle() at phar:///path/to/site/public_html/releases/20141223155437/composer.phar/src/Composer/Util/Git.php:133
*** [err :: server] Composer\Util\Git->runCommand() at phar:///path/to/site/public_html/releases/20141223155437/composer.phar/src/Composer/Repository/Vcs/GitDriver.php:80
*** [err :: server] Composer\Repository\Vcs\GitDriver->initialize() at phar:///path/to/site/public_html/releases/20141223155437/composer.phar/src/Composer/Repository/VcsRepository.php:86
*** [err :: server] Composer\Repository\VcsRepository->getDriver() at phar:///path/to/site/public_html/releases/20141223155437/composer.phar/src/Composer/Repository/VcsRepository.php:113
*** [err :: server] Composer\Repository\VcsRepository->initialize() at phar:///path/to/site/public_html/releases/20141223155437/composer.phar/src/Composer/Repository/ArrayRepository.php:170
*** [err :: server] Composer\Repository\ArrayRepository->getPackages() at phar:///path/to/site/public_html/releases/20141223155437/composer.phar/src/Composer/DependencyResolver/Pool.php:100
*** [err :: server] Composer\DependencyResolver\Pool->addRepository() at phar:///path/to/site/public_html/releases/20141223155437/composer.phar/src/Composer/Installer.php:387
*** [err :: server] Composer\Installer->doInstall() at phar:///path/to/site/public_html/releases/20141223155437/composer.phar/src/Composer/Installer.php:224
*** [err :: server] Composer\Installer->run() at phar:///path/to/site/public_html/releases/20141223155437/composer.phar/src/Composer/Command/UpdateCommand.php:134
*** [err :: server] Composer\Command\UpdateCommand->execute() at phar:///path/to/site/public_html/releases/20141223155437/composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:252
*** [err :: server] Symfony\Component\Console\Command\Command->run() at phar:///path/to/site/public_html/releases/20141223155437/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:874
*** [err :: server] Symfony\Component\Console\Application->doRunCommand() at phar:///path/to/site/public_html/releases/20141223155437/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:195
*** [err :: server] Symfony\Component\Console\Application->doRun() at phar:///path/to/site/public_html/releases/20141223155437/composer.phar/src/Composer/Console/Application.php:146
*** [err :: server] Composer\Console\Application->doRun() at phar:///path/to/site/public_html/releases/20141223155437/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:126
*** [err :: server] Symfony\Component\Console\Application->run() at phar:///path/to/site/public_html/releases/20141223155437/composer.phar/src/Composer/Console/Application.php:83
*** [err :: server] Composer\Console\Application->run() at phar:///path/to/site/public_html/releases/20141223155437/composer.phar/bin/composer:43
*** [err :: server] require() at /path/to/site/public_html/releases/20141223155437/composer.phar:25
*** [err :: server]
*** [err :: server]
*** [err :: server] update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [packages1] ... [packagesN]
*** [deploy:update_code] rolling back
Preparing to execute command: "rm -rf /path/to/site/public_html/releases/20141223155437; true"
Execute ([Yes], No, Abort) ? |y|
failed: "env PHP_PATH=/usr/bin/php sh -c 'sh -c '\\''cd /path/to/site/public_html/releases/20141223155437 && SYMFONY_ENV=livetest /usr/bin/php composer.phar update -vvv --prefer-dist'\\'''" on server
Capifony 每次都会下载一个新版本的 composer,所以这个错误将来自最新版本。有人知道这可能是什么吗?
编辑: Composer 文件:
{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/", "SymfonyStandard": "app/" }
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.5.*",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "~1.2",
"twig/extensions": "~1.0",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"symfony/css-selector": "3.0.*@dev",
"sensio/distribution-bundle": "~3.0",
"sensio/framework-extra-bundle": "~3.0",
"incenteev/composer-parameter-handler": "~2.0",
"friendsofsymfony/user-bundle": "2.0.*@dev",
"pagerfanta/pagerfanta": "1.0.*@dev",
"white-october/pagerfanta-bundle": "1.0.*@dev",
"gedmo/doctrine-extensions": "v2.3.7",
"stof/doctrine-extensions-bundle":"1.1.*"
},
"require-dev": {
"sensio/generator-bundle": "~2.3"
},
"scripts": {
},
"config": {
"bin-dir": "bin"
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.5-dev"
}
}
}
我删除了一些私有(private)仓库
Composer 版本:
Composer version 1.0-dev (4569f528f66739ec0a3be1075e2c01d6062b0b41) 2014-12-22 11:50:02
最佳答案
它缺少私有(private)存储库的凭据。凭据需要像这样设置:
:repository, "https://username@example.com/path/to/repo"
关于php - Composer undefined variable : auth,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27624019/
for /f "tokens=*" %%a in ('find /v ":" "%appdata%\gamelauncher\options.txt" ^| find "menu=a"') do (
我在 Javascript 中有一组全局计数器变量: var counter_0 = 0; var counter_1 = 0; var counter_2 = 0; 等等 然后我有一个 Javasc
好的,我正在阅读一些有关 RedBlackTrees 的代码。我注意到这一行“v1 = v2 = v3 = v4;”我理解类似“v1 += v2”(将 v2 添加到 v1 的当前值)和“v1 = v2
我正在为 C# 中的游戏数据加载制作一个 csv 阅读器,我想做的就是从数组(变量)的值声明一个变量,我们可以在 php 中像 $$foo 那样做。喜欢 void csvReader(string s
假设我有变量 内容为“ 123 ”和变量 b123 里面有一些文字。出于某种原因,我想使用变量 作为第二个 var 名称的一部分。像这样的东西: SET a=123 SET b123=some_tex
我对 javascript 有点陌生,我无法通过谷歌搜索找到任何内容,我正在编写一个程序,并且能够执行我所要求的操作: if (Variable == 1 或 Variable == 2 或 Vari
我发现我自己在做这种类型的 IF 语句分配。例如: if($variable == 1 || $variable == "whatever" || $variable == '492') { ...
我的虚拟 PC 在 MS-DOS 6.22 上运行时出现问题。 我需要使用变量 Date ,但我无法得到它,因为每当我尝试回显变量时,它都会显示 %variable%反而。 我在 Windows 控制
尝试运行此代码时: List list = em.createQuery("select balance b from Users where b.userName = '" + user_name.
我有一些代码,其中变量可以是 undefined、null 或正常值。无论变量是 undefined 还是 null,代码都需要做同样的事情。说有没有危险 for (var cur = this.bu
我正在编写一个批处理命令脚本,其中检查环境变量。我需要通过传递所有必需的变量来编写一个 FOR 循环,然后验证它是否已定义,如果未定义,则提示该键的值并永久设置该变量。 问题是我无法取消引用循环变量并
我知道这些是 Rails 的基础知识,但我仍然不知道 = 符号和 => 之间的全部区别以及 @some_variable 之间的区别、@@some_variable 和 :some_variable
我正在使用以下内容创建一个动态变量(PHP 术语中的“变量变量”): foo: "test1" set to-word (rejoin [foo "_result_data"]) array 5 但是
我一直在啃 PHP 套接字服务器和客户端的基础知识 here . 然后我偶然发现了这些行(摘自上面链接的第一个示例,发生在 while 中): if (false === ($buf = socket
这个问题在这里已经有了答案: What does "|=" mean? (pipe equal operator) (6 个答案) 关闭 9 年前。 我正在寻找一些编码来扩展我在 Java 方面的知
如何在 C++ 中从其他变量的值打印变量我只是 C++ 的新手。 在 php 中,我们可以通过其他变量的值来制作/打印一个变量。像这样。 $example = 'foo'; $foo = 'abc';
作为 Ruby on Rails 新手,我明白“@”和“:”引用有不同的含义。我看到了this post在 SO 中,其中描述了一些差异。 @ 表示实例变量(例如@my_selection) :表示别
编程新手/甚至更新。一个小的 go 程序有问题 - 不会编译带有 undefined variable 错误。代码: package main import ( "fmt" "io" "o
我知道其他一些语言,如PHP,支持“变量变量名”的概念--即,字符串的内容可以用作变量名的一部分。。我听说总的来说这不是一个好主意,但我认为它可以解决我在Python代码中遇到的一些问题。。有没有可能
我有两个版本的代码。 版本 1 Launcher.java class Launcher { public static void main(String[] args) {
我是一名优秀的程序员,十分优秀!