Parse platform 解析CLI-won';不要上传非js文件

Parse platform 解析CLI-won';不要上传非js文件,parse-platform,Parse Platform,我正在尝试使用我的云代码发送iOS推送通知(我不能使用Parse的推送API,因为我的应用程序是使用ionic构建的,他们的所有文档都希望是本机的) 我在本地使用nodejs将其作为独立脚本使用,但当我将其上传到parse时,我得到: Uploading source files Note that the following files will not be uploaded: parse_cloud_code/cloud/cloud/cert.pem parse_cloud_code/cl

我正在尝试使用我的云代码发送iOS推送通知(我不能使用Parse的推送API,因为我的应用程序是使用ionic构建的,他们的所有文档都希望是本机的)

我在本地使用nodejs将其作为独立脚本使用,但当我将其上传到parse时,我得到:

Uploading source files
Note that the following files will not be uploaded:
parse_cloud_code/cloud/cloud/cert.pem
parse_cloud_code/cloud/cloud/key.pem
Uploading recent changes to scripts...
The following files will be uploaded:
parse_cloud_code/cloud/cloud/cloud.js
parse_cloud_code/cloud/cloud/cloud_test.js
parse_cloud_code/cloud/cloud/credentials.js
parse_cloud_code/cloud/cloud/fs.js
parse_cloud_code/cloud/cloud/push-notification.js
parse_cloud_code/cloud/cloud/push-notifications_test.js
parse_cloud_code/cloud/cloud/tls.js
Finished uploading files
Error: Failed to load cloud/cert.pem with: Could not find file cloud/cert.pem
    at Object.exports.readFile (cloud/fs.js:24:17)
    at readFile (cloud/push-notification.js:45:8)
    at body (cloud/push-notification.js:56:5)
    at cloud/push-notification.js:147:3
    at cloud/push-notification.js:156:3
    at cloud/cloud.js:5073:5
    at cloud/cloud.js:5082:3
    at main.js:1:13

如何将
.pem
文件放入云代码?我尝试将它们重命名为
.js
,但Parse希望它们实际上是语法上的js文件。想象一下。

我找到了解决这种情况的方法,因为我遇到了类似的问题。我必须上传的任何非js文件都将重命名为.ejs。因此parse CLI将上载它,您可以在云代码中使用它