【问题标题】:php exec() doesn't work with PredictionIO deployphp exec() 不适用于 PredictionIO 部署
【发布时间】:2015-05-15 08:41:18
【问题描述】:

我正在使用 PredictionIO 进行推荐,现在我想运行自动部署,我使用

  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

到终端,效果很好

【问题讨论】:

    标签: php linux shell command-line predictionio


    【解决方案1】:

    综上所述,使用PHP的exec()时没有设置$HOME,导致设置了错误的基本路径。详细答案可以在https://groups.google.com/forum/#!topic/predictionio-user/_1Hq2jMiDn4

    找到

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-03-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多