Capifony& Symfony 2错误:php bin / vendors install --reinstall

时间:2012-03-01 14:48:48

标签: deployment symfony capifony

我有一个大问题。

我的配置一直运行到今天。

我不知道为什么我现在有这个错误

*** [err :: server.com] Could not open input file: bin/vendors
    command finished in 312ms
*** [deploy:update_code] rolling back
  * executing "rm -rf /home/server/deploy/releases/20120301143822; true"
    servers: ["server.com"]
    [server.com] executing command
    command finished in 208ms
failed: "sh -c 'cd /home/server/deploy/releases/20120301143822 && php bin/vendors install --reinstall'" on server.com

我确切地说我将本地工作部署到生产

这是我的部署文件

set   :application,   "MyApp"
set   :deploy_to,     "/home/server/deploy"
set   :serverName,    "myServer.com" # The server's hostname
set   :domain,        "server.com"

set   :scm,           :git
set   :repository,    "file:///Applications/MAMP/htdocs/localWorkDev"
set   :deploy_via,    :rsync_with_remote_cache

role  :web,           domain
role  :app,           domain
role  :db,            domain, :primary => true

set   :use_sudo,      false
set   :keep_releases, 3
set   :user,          "root"

set   :shared_files,      ["app/config/parameters.ini"]
set   :shared_children,     [app_path + "/logs", web_path + "/uploads", "vendor"]
set   :update_vendors, true

请帮帮我

由于

萨姆

1 个答案:

答案 0 :(得分:0)

ALL现在就是。我刚刚做了一个

php bin/vendors install --reinstall

现在可行。

就我而言,添加 --reinstall 命令非常重要。

希望它有用

萨姆