everzet/capifony — Issue #88: Capifony + symfony2: Erreur using cap deploy to my server
Author: sam57
Created: 2012-02-07 21:02:53+00:00
State: open

I have followed the ServerGrove tutorial in order to deploy my symphony project into my server using capifony but I have a problem:

[server.com] executing command
*** [err :: server.com] find: /home/app/src/releases/20120207163503/web/css: No such file or directory
*** [err :: server.com]
*** [err :: server.com] find: /home/app/src/releases/20120207163503/web/images: No such file or directory
*** [err :: server.com] find: /home/app/src/releases/20120207163503/web/js
*** [err :: server.com] : No such file or directory

the script continue but I have others errors

* executing "cd /home/app/src/releases/20120207163503 && /usr/local/php5/bin/php bin/vendors install --reinstall"
servers: ["server.com"]
[server.com] executing command
** [out :: server.com] X-Powered-By: PHP/5.2.13-pl1-gentoo
** [out :: server.com] Content-type: text/html
** [out :: server.com]
** [out :: server.com]

** [out :: server.com] Warning: Wrong parameter count for parse_ini_file() in /home/app/src/releases/20120207163503/bin/vendors on line 69

** [out :: server.com]

** [out :: server.com] Warning: Invalid argument supplied for foreach() in /home/app/src/releases/20120207163503/bin/vendors on line 73

*** [err :: server.com] sh: ./vendor/bundles/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php: No such file or directory
*** [err :: server.com] sh: ./app/console: No such file or directory
*** [err :: server.com] sh: ./app/console: No such file or directory
command finished in 369ms

Here my deploy.rb file

set :serverName, "server.com" # The server's hostname
set :repository, "file:///Applications/MAMP/htdocs/sf2"
set :domain, "server.com"
set :deploy_to, "/home/app/src" # Remote location where the project will be stored
ssh_options[:port] = "22"
set :scm, :git
set :deploy_via, :rsync_with_remote_cache
set :user, "root"
role :web, domain
role :app, domain
role :db, domain, :primary => true
set :keep_releases, 3 # The number of releases which will remain on the server
set :use_sudo, false
set :update_vendors, true
set :shared_files, ["app/config/parameters.ini"]
set :shared_children, [app_path + "/logs", web_path + "/uploads", "vendor"]

Please help,

Thanks Sam