我将使用capifony部署我的服务器的symfony项目。 Capifony配置为安装composer并更新供应商。
当我运行cap deploy
时出现此错误:
Script Incenteev\ParameterHandler\ScriptHandler::buildParameters handling the post-update-cmd event terminated with an exception
failed: "sh -c 'sh -c '\\''cd /home/capepsinfo/www/releases/20140814135415 && php composer.phar update --no-dev --verbose --prefer-dist --optimize-autoloader --no-progress'\\'''" on capeps.info
我的deploy.rb:
set :application, "capepsinfo"
set :domain, "capeps.info"
set :deploy_to, "/home/capepsinfo/www"
set :app_path, "/app"
set :web_path, "/web"
set :user, "capepsinfo"
set :use_sudo, false
set :repository, "ssh://git@github.com/n1c01a5/capeps.git"
set :deploy_via, :remote_cache
set :scm, :git
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `subversion`, `mercurial`, `perforce`, or `none`
set :use_composer, true
set :update_vendors, true
set :model_manager, "doctrine"
# Or: `propel`
set :shared_files, ["app/config/parameters.yml"] # next configuration with ssh
set :shared_children, [app_path + "/logs", web_path + "/uploads"]
set :maintenance_template_path, "web/maintenance.html"
role :web, domain # Your HTTP server, Apache/etc
role :app, domain, :primary => true # This may be the same as your `Web` server
感谢您的帮助。