Ali Abdullah
Ali Abdullah

Reputation: 11

Bitbucket call webhook php code not executing git command and when I execute from command prompt same command runs perfectly

When I commit my code form source tree bitbucket triggers a webhook that hit php code

exec('cd /d ' . $web_root_dir . ' && '. $git_bin_path  . ' pull origin master'); 

it won't execute but when I copy the same command by copying from the log on command prompt it execute perfectly.

I've tried my heart out on this but no result.

Upvotes: 1

Views: 45

Answers (0)

Related Questions