diff --git a/lib/capistrano/dsl/symfony.rb b/lib/capistrano/dsl/symfony.rb index 2ab7488..151a31a 100644 --- a/lib/capistrano/dsl/symfony.rb +++ b/lib/capistrano/dsl/symfony.rb @@ -40,7 +40,7 @@ def symfony_vendor_path def symfony_console(command, params = '') on release_roles(fetch(:symfony_deploy_roles)) do - execute :php, symfony_console_path, command, params, fetch(:symfony_console_flags) + execute fetch(:php), symfony_console_path, command, params, fetch(:symfony_console_flags) end end diff --git a/lib/capistrano/symfony/defaults.rb b/lib/capistrano/symfony/defaults.rb index c1efdfb..a68b882 100644 --- a/lib/capistrano/symfony/defaults.rb +++ b/lib/capistrano/symfony/defaults.rb @@ -14,6 +14,9 @@ set :log_path, -> { fetch(:var_path) + "/log" } set :cache_path, -> { fetch(:var_path) + "/cache" } +# PHP executable used to run commands +set :php, "php" + # console set :symfony_console_path, -> { fetch(:bin_path) + "/console" } set :symfony_console_flags, "--no-debug"