I am having difficulties with my vendor folder.
I am using Symfony 2.1.x running the latest release of capifony.
Every time i try to deploy it works fine, everything goes as it should. But when i try to view my site it sais that it can't find specific entities, when i zip my local computer's vendor folder and extract it, then everything works fine. However it's time consuming because the vendor folder is about 100mb in size and i could use composer to install them. I don't get the problem because it doesn't make sense. Everything works fine on localhost, i am running latest builds of my vendors but after deploy it suddenly is missing things.
I hope this is a bit clear and that someone can help me with this
Regards C4D3R
my deploy.rb
set :application, "****"
set :domain, "***.hostgator.com"
set :deploy_to, "/home/***/public_html/test.***.org/"
set :app_path, "app"
set :web_path, "web"
set :user, "*****"
set :port, "2222"
set :use_sudo, false
set :php_bin, "/opt/php53/bin/php"
set :assets_install, false
default_run_options[:pty] = true
#SYMFONY 2 SPECIFIC
set :shared_files, ["app/config/parameters.yml"]
set :shared_children, [app_path + "/logs", web_path + "/uploads", "vendor"]
set :use_composer, true
set :update_vendors, true
set :cache_warmup, true
set :repository, "git@bitbucket.org/****/***.git"
set :scm, :git
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `subversion`, `mercurial`, `perforce`, or `none`
set :vendors_mode, "install"
set :model_manager, "doctrine"
# Or: `propel`
role :web, domain # Your HTTP server, Apache/etc
role :app, domain # This may be the same as your `Web` server
role :db, domain, :primary => true # This is where Symfony2 migrations will run
set :keep_releases, 3
# IMPORTANT = 0
# INFO = 1
# DEBUG = 2
# TRACE = 3
# MAX_LEVEL = 3
logger.level = Logger::MAX_LEVEL
# Be more verbose by uncommenting the following line
# logger.level = Logger::MAX_LEVEL
#SPEED UP DEPLOY
# Symfony2 2.1
#before 'symfony:composer:update', 'symfony:copy_vendors'
namespace :symfony do
desc "Copy vendors from previous release"
task :copy_vendors, :except => { :no_release => true } do
if Capistrano::CLI.ui.agree("Do you want to copy last release vendor dir then do composer install ?: (y/N)")
capifony_pretty_print "--> Copying vendors from previous release"
run "cp -a #{previous_release}/vendor #{latest_release}/"
capifony_puts_ok
end
end
end
# Fix persmissions on VPS
after "deploy:update_code" do
namespace :symfony do
capifony_pretty_print "--> Fixing permissions"
run "cd #{latest_release} && find . -type f -exec chmod 644 {} \\;"
run "cd #{latest_release} && find . -type d -exec chmod 755 {} \\;"
capifony_puts_ok
end
end
after "deploy", "deploy:cleanup"