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 0.0.0.0:8000

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