2013-01-05 32 views
1

我正在上傳一個.worker文件給ironworker。工作人員的代碼需要(使用require命令)其他php文件。我是否也需要將它們上傳到鐵工?PHP所需文件Iron Worker

換句話說,我需要別的東西添加到.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'; 

回答

4

是。 IronWorker運行在Iron.io的服務器上,因此需要上傳所有依賴關係。

您可以通過使用dirfile命令做到這一點的工人文件:

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

迪爾將包括整個目錄,文件將只包括一個單一的文件。你可以找到更多關於.worker reference page的信息。