我嘗試用capifonycapifony的安裝作曲家依賴失敗
cap deploy:setup
的幫助下部署我的Symfony2項目是沒有問題的,並存儲在/無功/網絡/ htdocs中/ symfony的項目的兩個文件夾
.symfony-project
.. releases
.. shared
後,當我嘗試運行:
cap deploy:cold
我得到
--> Updating code base with remote_cache strategy
--> Creating cache directory................................✔
--> Creating symlinks for shared directories................✔
--> Normalizing asset timestamps............................✔
--> Downloading Composer....................................✔
--> Installing Composer dependencies........................✘
*** [deploy:update_code] rolling back
failed: "sh -c 'sh -c '\\''cd /var/www/htdocs/symfony-project/releases/20130311124645 &&
php composer.phar install --no-scripts --verbose --prefer-dist --optimize-
autoloader'\\'''" on webservername.net
,並有在
var/www/htdocs/symfony-project/releases/
我deploy.rb沒有文件夾是以下之一:
set :user, "user"
set :port, "12345"
set :application, "Application Name"
set :domain, "webservername.net"
set :deploy_to, "/var/www/htdocs/symfony-project"
set :app_path, "app"
set :repository, "ssh://#{user}@webservername.net:#{port}/var/repos/symfony-project.git"
set :scm, :git
set :branch, "master"
set :model_manager, "doctrine"
role :web, domain
role :app, domain
role :db, domain, :primary => true
set :use_sudo, false
set :keep_releases, 3
set :deploy_via, :remote_cache
set :use_composer, true
有沒有人的想法可能是由以下原因造成?
當我遇到capifony部署問題時,我使用-d選項。逐步驗證哪個命令是打破部署..當我找到確切的命令,我在服務器本身執行相同的命令,這將顯示更多的信息(缺少權限等..) – weyandch 2013-03-11 14:13:37
絕對值得做的@weyandch建議。如果回滾是正確的,你就不會有發佈。另外,增加LOGGER級別以獲得更詳細的錯誤消息; logger.level = Logger :: MAX_LEVEL – catchamonkey 2013-03-11 16:51:44