我正在iOS应用中实施Stripe Payment并按照此处提到的步骤进行操作:https://github.com/ParsePlatform/ParseStore
在第7步中,运行"解析部署"它显示Deploy Error:没有这样的文件或目录
我的global.json文件:
{
"global": {
"parseVersion": "1.2.1"
},
"applications": {
"ParseStore": {
"applicationId": "fZXCNaUOMWiCo7------key---------------------"
},
"_default": {
"link": "ParseStore"
}
}
}
终端命令和输出:
MAC-D05:CloudTest myusername$ parse add
We've changed the way the CLI works.
To save time logging in, you should create an account key.
Type "parse configure accountkey" to create a new account key.
Read more at: https://parse.com/docs/cloudcode/guide#command-line-account-keys
Email: myemail@gmail.com
Password (will be hidden):
1: ParseStore
2: otherapp1
3: otherapp2
4: otherapp3
5: lsjdfsljdf
Select an App to add to config: 1
Written config for "ParseStore"
MAC-D05:CloudTest myusername$ parse deploy
We've changed the way the CLI works.
To save time logging in, you should create an account key.
Type "parse configure accountkey" to create a new account key.
Read more at: https://parse.com/docs/cloudcode/guide#command-line-account-keys
Email: myemail@gmail.com
Password (will be hidden):
Uploading source files
Uploading recent changes to scripts...
The following files will be uploaded:
/Users/myusername/Documents/StripeParse/ParseStore/CloudTest/cloud/main.js
Deploy failed with error:
lstat /Users/myusername/Documents/StripeParse/ParseStore/CloudTest /public: no such file or directory
Will retry in 0 seconds.
Uploading source files
Uploading recent changes to scripts...
The following files will be uploaded:
/Users/myusername/Documents/StripeParse/ParseStore/CloudTest/cloud/main.js
Sorry, deploy failed again with same error.
Will retry in 1 seconds.
Uploading source files
Uploading recent changes to scripts...
The following files will be uploaded:
/Users/myusername/Documents/StripeParse/ParseStore/CloudTest/cloud/main.js
lstat /Users/myusername/Documents/StripeParse/ParseStore/CloudTest/public: no such file or directory
答案 0 :(得分:4)
创建一个名为' public'的空文件夹。在' CloudTest'文件夹并尝试部署....它将工作..