在Heroku上部署项目时,有人遇到过这样的问题吗?
Bundle complete! 40 Gemfile dependencies, 103 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into ./vendor/bundle.
Bundle completed (3.58s)
Cleaning up the bundler cache.
Warning: the running version of Bundler (1.13.7) is older than the version that created the lockfile (1.14.6). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
Removing bundler (1.11.2)
-----> Installing node-v6.10.0-linux-x64
-----> Detecting rake tasks
sh: 2: Syntax error: Unterminated quoted string
sh: 2: Syntax error: Unterminated quoted string
!
! Could not detect rake tasks
! ensure you can run `$ bundle exec rake -P` against your app
! and using the production group of your Gemfile.
! rake aborted!
! LoadError: libdmtx.so.0: cannot open shared object file: No such file or directory - /tmp/build_07af0b8150c4d2d6b3e8cd1198b88169/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0-static/Rdmtx-0.2.2/Rdmtx.so
! /tmp/build_07af0b8150c4d2d6b3e8cd1198b88169/vendor/bundle/ruby/2.2.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:91:in `require'
我可以在本地使用该应用程序,我也可以运行$ bundle exec rake -P against
我的应用程序。
PS:就在此部署之前,我在libdmtx遇到了问题,因为我发布了这里:Issues with gem Rdmtx
答案 0 :(得分:0)
我发生了类似的事情,一切都是由于项目的临时文件,我发现你有类似的错误:
LoadError: libdmtx.so.0: can not open shared object file: /tmp/build_07af0b8150c4d2d6b3e8cd1198b88169/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0-static/Rdmtx-0.2 .2 / Rdmtx.so ! /tmp/build_07af0b8150c4d2d6b3e8cd1198b88169/vendor/bundle/ruby/2.2.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:91:in `require '
我所做的就是删除它们并再次运行Bundle并尝试
答案 1 :(得分:0)
有必要添加此buildpack:https://github.com/heroku/heroku-buildpack-apt。