Skip to content

Commit 628a3b1

Browse files
committed
Merge pull request #19 from 2ec0b4/cakephp-working-dir
Cakephp working dir
2 parents e4be138 + 1fafc71 commit 628a3b1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/capistrano/cakephp/defaults.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
set_if_empty :cakephp_roles, :all
22
set_if_empty :cakephp_flags, ''
33
set_if_empty :cakephp_user, :local_user
4+
set_if_empty :cakephp_working_dir, -> { fetch(:release_path) }
45

56
set_if_empty :linked_dirs, [
67
'logs',
7-
'tmp'
8+
'tmp',
89
'tmp/cache/models',
910
'tmp/cache/persistent',
1011
'tmp/cache/views',

lib/capistrano/tasks/cake.rake

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace :cakephp do
88
command = args[:command_name] || fetch(:cmd)
99

1010
on roles fetch(:cakephp_roles) do
11-
within release_path do
11+
within fetch(:cakephp_working_dir) do
1212
execute "bin/cake", command, *args.extras, fetch(:cakephp_cake_options)
1313
end
1414
end

0 commit comments

Comments
 (0)