Skip to content

Commit

Permalink
PHP executable used to run Symfony commands can be configured (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
romaricdrigon authored and Nyholm committed Mar 19, 2019
1 parent 5f0bf73 commit bf5c492
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano/dsl/symfony.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions lib/capistrano/symfony/defaults.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bf5c492

Please sign in to comment.