简体   繁体   English

耙败了! “不知道如何构建任务'dropbox:authorize'”

[英]Rake Aborted! “Don't know how to build task 'dropbox:authorize'”

Working with rails and my application, and bumped into a problem. 使用Rails和我的应用程序,遇到了一个问题。 I've come to the step where I need to install dropbox, and incorporate it to my code. 我已经到了需要安装保管箱并将其合并到我的代码中的步骤。 The first step was to install the dropbox gem, and that happened with ease. 第一步是安装保管箱gem,这很容易进行。 Then I had to complete the migration, which was also a success. 然后我必须完成迁移,这也是成功的。 Then it came to the problem to rake dropbox, which the problem happend. 然后出现了问题,就是发生了问题。

This is the code that I put into my command line: 这是我放入命令行的代码:

rake dropbox:authorize APP_KEY=your_app_key APP_SECRET=your_app_secret ACCESS_TYPE= dropbox | app_folder. 

Of course I put my key and secret code into the code, but when I pressed enter, I got the following error. 当然,我将密钥和秘密代码放入了代码中,但是当我按下Enter键时,出现了以下错误。

rake aborted! 耙子流产了! Don't know how to build task 'dropbox:authorize' 不知道如何建立任务'dropbox:authorize'

You have to choose either dropbox or app_folder for the ACCESS_TYPE parameter. 您必须为ACCESS_TYPE参数选择保管箱或app_folder。

https://github.com/robin850/carrierwave-dropbox/issues/4 https://github.com/robin850/carrierwave-dropbox/issues/4

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM