heroku是否支持Ruby的net / sftp库?

时间:2014-08-13 08:48:28

标签: ruby heroku sftp

在Heroku的雪松堆上运行Ruby 2.0。

我有一个rake任务,其中包含以下行: require 'net/sftp'

当我推送到Heroku时,我收到以下错误:

-----> Writing config/database.yml to read from DATABASE_URL
       Could not detect rake tasks
       ensure you can run `$ bundle exec rake -P` against your app with no environment variables present
       and using the production group of your Gemfile.
       This may be intentional, if you expected rake tasks to be run
       cancel the build (CTRL+C) and fix the error then commit the fix:
       rake aborted!
       LoadError: cannot load such file -- net/sftp

我找不到任何说Heroku不支持net/sftp的资源,但这似乎表明它不支持。

Heroku是否支持net/sftp库?

1 个答案:

答案 0 :(得分:0)

如果添加

会发生什么
gem "net-sftp"

到您的Gemfile?