解析服务器帐户密钥

时间:2016-03-03 16:26:23

标签: parse-server

在Digital Ocean上安装了Parse Server,并且一直在尝试使用CLI来管理云代码。我已经碰壁了,因为如果没有Parse.com上的帐户密钥(不再提供帐户密钥),CLI工具将无法向前移动。例如,如果我输入“parse new”,我会得到:

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

如果您真的这样做,它会回复:

Input your account key or press ENTER to generate a new one.  NOTE: on pressing ENTER we'll try to open the url: "https://www.parse.com/account/keys" in the default browser:

这会导致登录页面。由于我在Parse.com上没有帐户(Parse Server也没有必要),所以我被困住了。如果我点击“我没有帐户”链接,它就会把我带到头版。

我发现很难相信在Parse Server上无法管理/创建云代码。但是,它肯定是那样的。这只是更新CLI的失败,还是我遗漏了一些明显的东西。

非常感谢。

2 个答案:

答案 0 :(得分:1)

Parse cli is not meant to be used with parse server. At least not currently. Parse server is simply a node module which means that you will have to handle deployment etc yourself. There are many tools that will handle everything that the parse cli did, and much more, from the nodejs community however.

You said that you used digital ocean. You might want to consider heroku, aws or google cloud. Heroku for example has the heroku cli with many of the same features as the parse cli which might save you some time.

答案 1 :(得分:0)

您不能在parse-server上使用parse cli。 Parse-server和parse.com环境都不同,parse-server只是节点模块,因此可以使用其他工具自动部署。 我正在永远使用文件更改时自动重启我的解析服务器。所以你可以使用filezilla复制/粘贴文件,就是这样。