Permalink
Browse files

Update to latest Capifony changes and some little adjustment to deplo…

…y.rb
  • Loading branch information...
1 parent ee41d05 commit d635669029a2618c16b16f9837d316b4b2d5eae5 @stloyd stloyd committed Dec 5, 2012
Showing with 13 additions and 7 deletions.
  1. +2 −2 Capfile
  2. +11 −5 app/config/deploy.rb
View
@@ -1,4 +1,4 @@
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
-Dir['vendor/**/Resources/recipes/*.rb'].each { |bundle| load(bundle) }
-load Gem.find_files('symfony2.rb').first.to_s
+
+require 'capifony_symfony2'
load 'app/config/deploy'
View
@@ -18,7 +18,12 @@
set :admin_runner, nil
set :keep_releases, 2
-set :shared_files, ["app/config/parameters.yml", "bin/launch-rabbit-consumers.sh", "app/Resources/java"]
+set :writable_dirs, ["app/cache", "app/logs"]
+set :webserver_user, "www-data"
+set :permission_method, :acl
+set :use_set_permissions, true
+
+set :shared_files, ["app/config/parameters.yml", "app/Resources/java", "web/.htaccess", "bin/launch-rabbit-consumers.sh"]
set :shared_children, [app_path + "/logs"]
set :use_composer, true
set :update_vendors, false
@@ -32,11 +37,12 @@
namespace :symfony do
desc "Copy vendors from previous release"
task :copy_vendors, :except => { :no_release => true } do
- pretty_print "--> Copying vendors from previous release if exists"
+ capifony_pretty_print "--> Copying vendors from previous release if exists"
+
run "if [ -d #{previous_release}/vendor ]; then cp -a #{previous_release}/vendor #{latest_release}/vendor; fi"
- puts_ok
+ capifony_puts_ok
end
end
-# Be more verbose by uncommenting the following line
-# logger.level = Logger::MAX_LEVEL
+after "deploy:update", "deploy:cleanup"
+after "deploy", "deploy:set_permissions"

0 comments on commit d635669

Please sign in to comment.