我的Capifony装置工作..。我可以部署多个版本.
C:\xampp\htdocs\example>cap deploy
--> Updating code base with remote_cache strategy
--> Creating cache directory................................
--> Creating symlinks for shared directories................
--> Creating symlinks for shared files......................
--> Normalizing asset timestamps............................
--> Downloading Composer....................................
--> Installing Composer dependencies........................
--> Dumping all assets to the filesystem....................
--> Warming up cache........................................
--> Clear controllers.......................................
--> Successfully deployed!问题是cap deploy:rollback 函数.
我得到了一个错误:
C:\xampp\htdocs\example>cap deploy:rollback
failed: "sh -c 'cd /srv/www/example && false dump-autoload --optimize'" on 192.168.178.102Capfile
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
require 'capifony_symfony2'
load 'app/config/deploy'deploy.rb
set :application, "ExampleProject"
set :deploy_to, "/srv/www/example"
set :domain, "example.org"
set :scm, :git
set :repository, "git@gitlab.example.org:www/project.git"
server "192.168.178.102", :app, :web, :db, :primary => true
set :use_sudo, false
set :keep_releases, 3
set :deploy_via, :remote_cache
# Symfony2
set :shared_files, ["app/config/parameters.yml"]
set :shared_children, [app_path + "/logs", web_path + "/uploads", "vendor"]
set :use_composer, true
set :dump_assetic_assets, true
# SSH
set :user, "www-data"
set :git_enable_submodules, 1发布于 2014-04-17 11:51:04
deploy.rb (类似于set :composer_bin, "/usr/bin/composer" )中提供它的路径logger.level = Logger::DEBUG以获得更多细节,从而启用更详细的输出。发布于 2015-03-20 14:54:48
我有和你一样的问题。经过一番调查,我发现通往作曲家的道路是出于某种原因而建立起来的。我在我的deploy.rb中添加了作曲家的路径,它起了作用。因此,将以下内容添加到您的deploy.rb
set :composer_bin, "/usr/bin/composer"发布于 2014-06-20 17:51:25
rollback任务无法工作/使用Capifony2.5继续转储错误,请发出open:https://github.com/everzet/capifony/issues/511
https://stackoverflow.com/questions/23131064
复制相似问题