PHP所需文件Iron Worker

时间:2013-01-05 13:00:19

标签: php heroku ironworker

我正在将.worker文件上传到铁工。 worker的代码需要(使用require命令)其他php文件。我是否还需要将它们上传到铁工?

换句话说,我是否需要在.worker文件中添加其他内容以及如何:

# define the runtime language
runtime "php"
# exec is the file that will be executed:
exec "hello.php"

WHERE:hello.php将包含此语句:

require_once 'bye.php';

1 个答案:

答案 0 :(得分:4)

是。 IronWorker在Iron.io的服务器上运行,因此需要上传所有依赖项。

您可以使用dirfile命令在工作文件中执行此操作:

dir 'path/to/dir'
file 'path/to/file.php'

Dir将包含整个目录,文件将只包含一个文件。您可以在.worker reference page找到更多信息。