Skip to content

Commit bf5c492

Browse files
romaricdrigonNyholm
authored andcommitted
PHP executable used to run Symfony commands can be configured (#114)
1 parent 5f0bf73 commit bf5c492

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/capistrano/dsl/symfony.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def symfony_vendor_path
4040

4141
def symfony_console(command, params = '')
4242
on release_roles(fetch(:symfony_deploy_roles)) do
43-
execute :php, symfony_console_path, command, params, fetch(:symfony_console_flags)
43+
execute fetch(:php), symfony_console_path, command, params, fetch(:symfony_console_flags)
4444
end
4545
end
4646

lib/capistrano/symfony/defaults.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
set :log_path, -> { fetch(:var_path) + "/log" }
1515
set :cache_path, -> { fetch(:var_path) + "/cache" }
1616

17+
# PHP executable used to run commands
18+
set :php, "php"
19+
1720
# console
1821
set :symfony_console_path, -> { fetch(:bin_path) + "/console" }
1922
set :symfony_console_flags, "--no-debug"

0 commit comments

Comments
 (0)