我使用PredictionIO进行推荐,现在我想运行deploy automatic,我使用
exec('cd /home/abc/sites/BeeketingEngineShop/ && /home/abc/PredictionIO/bin/pio deploy)
但是它一直在运行,并且不会在0.0.0.0:8000中部署
当我复制时
cd /home/abc/sites/BeeketingEngineShop/ && /home/abc/PredictionIO/bin/pio deploy
对于终端来说,它工作得很好。
发布于 2015-05-18 22:29:02
总之,在使用PHP的exec()
时没有设置$HOME
,导致设置了错误的基本路径。有关详细答案,请访问https://groups.google.com/forum/#!topic/predictionio-user/_1Hq2jMiDn4。
https://stackoverflow.com/questions/30255132
复制相似问题