php exec() doesn’t work with PredictionIO deploy

I am using PredictionIO for recommendation, now i want to run deploy automatic, and i use

  exec('cd /home/abc/sites/BeeketingEngineShop/ && /home/abc/PredictionIO/bin/pio deploy)

But it keep running, and doesn’t deploy in

When i copy

cd /home/abc/sites/BeeketingEngineShop/ && /home/abc/PredictionIO/bin/pio deploy

to terminal, it works very well

Source: linux

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.