在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
库?
答案 0 :(得分:0)
如果添加
会发生什么gem "net-sftp"
到您的Gemfile?