Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 部署到heroku时出现问题_Ruby On Rails_Ruby_Heroku - Fatal编程技术网

Ruby on rails 部署到heroku时出现问题

Ruby on rails 部署到heroku时出现问题,ruby-on-rails,ruby,heroku,Ruby On Rails,Ruby,Heroku,有人在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)

有人在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


PS:就在这次部署之前,我在这里发布了关于libdmtx的问题:

类似的事情发生在我身上,一切都是由于项目的临时文件,我发现您也有类似的错误:

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 '

我所做的是删除它们并再次运行捆绑包,然后继续,尝试添加此buildpack:。

问题是它正在Heroku中发生,据我所知,无法清理Heroku的tmp文件夹。如果你是对的,我说你可以尝试在本地删除临时文件,再次运行Bundle安装,然后部署回heroku,可能是因为您有一些gem与此数据存储在这些临时文件中,我使用
rake tmp:clear
清理tmp并再次部署代码,但问题仍然存在。赫罗库似乎找不到那个自由。