Is it possible to clone existing cloud code already deployed on server side, through the Parse command line tool?

自作多情 提交于 2019-12-22 09:26:03

问题


How can I clone an existing Parse Cloud Project files to my computer with the command line tool? I tried parse new and selected a project but it created a folder with new files, not the files that I already had in the Parse Cloud.

Note: I did not find clue regarding that point in the Parse cloud code documentation neither via Google.

Thanks!


回答1:


With the new release of parse-cli, this is possible now. Make sure your cli is at least at version 2.2.5

Follow below instructions to download cloud code files on your new machine:

  1. parse new then choose e for existing app, then choose your app. This will create a new project directory.
  2. Browse to your project folder using command line tool
  3. Use this command to download: parse download [app] -f. Replace [app] with the app name. Note that -f will override all current files in the directory

If you want to download code files to existing project, you can skip step 1.




回答2:


Note this is now possible (2016), with new features at Parse.


Response from a Parse engineer:

"This is by design, which means that maybe we will include this feature one day. For the moment, the CLI tool cannot pull files from cloud code. The tool can only deploy code to Parse, it is not meant to be used in place of source control.

Thanks."

I spent a lot of time looking up an answer (on Google and the closed Parse forum) to this unanswered question. I finally had an answer from a Parse engineer, after having asked them on the Parse/Facebook bug tracker system, if it was possible to clone existing cloud code.

So I hope this answer will help you guys.



来源:https://stackoverflow.com/questions/28639470/is-it-possible-to-clone-existing-cloud-code-already-deployed-on-server-side-thr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!