使用capifony部署symfony项目

时间:2016-07-08 11:05:43

标签: ruby symfony capifony

运行Cap Deploy时出现以下错误。

--> Creating cache directory................................✔
--> Creating symlinks for shared directories................✔
--> Creating symlinks for shared files......................✔
--> Downloading Composer....................................✔
--> Installing Composer dependencies........................✔
--> Dumping all assets to the filesystem....................✘
*** [deploy:update_code] rolling back
failed: "sh -c 'sh -c '\\''cd /var/www/html/test/releases/20160708103535 && php app/console assetic:dump --env=prod --no-debug'\\'''" on dev.yarsha.com.np

我的deploy.rb文件

set :application, "Deploy Symfony Project"
set :domain,      "dev.yarsha.com.np"
set :deploy_to,   "/var/www/html/test"
set :app_path,    "app"

set :repository,  "git@gitlab.com:aswrgrg/demo.git"
set :scm,         :git
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `subversion`, `mercurial`, `perforce`, or `none`

set :model_manager, "doctrine"
# Or: `propel`

role :web,        domain                         # Your HTTP server, Apache/etc
role :app,        domain, :primary => true       # This may be the same as your `Web` server

set  :keep_releases,  3
# set :deploy_via, :copy

set :dump_assetic_assets, true
set :use_composer, true
# set :update_vendors, true

set :shared_files,      ["app/config/parameters.yml"]
set :shared_children,     [app_path + "/logs", web_path + "/uploads", "vendor", app_path + "/sessions"]

set :branch, "master"
set :use_sudo, false
after "deploy:update", "deploy:cleanup"

set :user, "root"
set :password, "root.server"


# set :writable_dirs,       ["app/cache", "app/logs", "app/sessions"]
# set :webserver_user,      "www-data"
# set :permission_method,   :acl
# set :use_set_permissions, true

ssh_options[:forward_agent] = true
default_run_options[:pty] = true

# Be more verbose by uncommenting the following line
# logger.level = Logger::MAX_LEVEL

不知道是什么导致了这个问题,我尝试在线使用不同的解决方案,没有任何事情可以帮助我。任何人都可以帮我解决我的问题..

0 个答案:

没有答案