简体   繁体   English

devise_token_auth:在Rails应用中安装无法运行

[英]devise_token_auth:install in a rails app does not run

I'm trying to start a project with devise_token_auth with the instructions of README.md file. 我正在尝试使用README.md文件的说明使用devise_token_auth启动项目。
When i run rails g devise_token_auth:install User auth the console becomes locked and does not display any messages. 当我运行rails g devise_token_auth:install User auth ,控制台被锁定,并且不显示任何消息。

To create my project i followed these steps: 要创建我的项目,我遵循以下步骤:

rails new foo
cd foo
bundle install

#then i add the gem 'devise_token_auth' to my Gemfile and after
bundle install

#now the problem...
rails g devise_token_auth:install User auth
#the console becomes locked with no messages

I'm using ubuntu 14.04 LTS, ruby-2.2.1 and my Gemfile looks like: 我正在使用ubuntu 14.04 LTS,ruby-2.2.1,我的Gemfile如下所示:

source 'https://rubygems.org'

gem 'rails', '4.1.6'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'pg'
gem 'spring', group: :development

gem 'devise_token_auth'

group :test do
  gem 'rspec-rails'
end

Does anyone know what could be wrong? 有谁知道可能是错的吗?

Credits to @errata 归功于@errata

The problem was in my folder, which was not writable. 问题出在我的文件夹中,该文件夹不可写。
I just change the folder permissions and now it works. 我只是更改了文件夹权限,现在可以使用了。

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

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