我已将一个文件上传到Heroku,该文件可爬网网站并根据http请求以JSON格式响应已编辑的内容。我现在想定期更新内容,以便内容保持最新。我尝试使用Heroku Scheduler,但是我无法安排该过程以使其正确运行。
我在Heroku Scheduler中指定了以下过程:
run phantomjs phantom.js //Using 1X Dyno, every hour.
//phantom.js is the file that contains my source code and that runs the server.
但是如果我输入
heroku ps
进入终端,我只看到一个Web达因正在运行,并且没有调度程序任务。另外,如果我输入
heroku logs --ps scheduler.1
如调度程序文档中所述,没有输出。
我究竟做错了什么?任何帮助,将不胜感激。
找到了:我只需要写
phantomjs phantom.js
为了使它工作。是“运行”使表达式无效
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句