由于安全问题,无法将rails应用程序部署到Heroku

Ale*_*lex 5 ruby-on-rails heroku

我尝试多次部署它但得到了同样的错误.我是ruby on rails的新手,不知道如何解决它.我尝试在本地克隆它并将文件更改为"config.assets.compile = false"而不是true.那也行不通.有任何想法吗?这是我试图下载的git存储库的链接.如果我需要对任何事情更具体,请告诉我.感谢您的帮助!

构建应用程序时出现问题.这可能意味着您的app.json项目不是有效的Heroku应用程序.请确保您的应用可以部署到Heroku,然后重试.

-----> Installing node-v8.10.0-linux-x64
       Detected manifest file, assuming assets were compiled locally
-----> Detecting rails configuration
       sh: 2: config.assets.compile: not found
       !
       ! A security vulnerability has been detected in your application.
       ! To protect your application you must take action. 
         Your application
       ! is currently exposing its credentials via an easy to exploit 
         directory
       ! traversal.
       !
       ! To protect your application you must either upgrade to 
         Sprockets version "3.7.2"
       ! or disable dynamic compilation at runtime by setting:
       !
       ! ! config.assets.compile = false # Disables security 
         vulnerability !
       !
       ! Push rejected, failed to compile Ruby app.
       ! Push failed
Run Code Online (Sandbox Code Playgroud)

小智 13

这应该工作:

bundle update sprockets
Run Code Online (Sandbox Code Playgroud)