捆绑安装期间,Heroku部署失败 [英] Heroku deployment fails during Bundle Install

查看:147
本文介绍了捆绑安装期间,Heroku部署失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


运行:捆绑安装 - 无需开发:测试 - 路径供应商/捆绑--binstubs供应商/捆绑/ bin -j4 - 部署
sh:语法错误:未终止的引用字符串




<但是当我运行 ruby​​ -c Gemfile 我得到语法OK



任何提示?

编辑:
源代码可以在这里找到: https://github.com/tubedude/portfolio_tracker
我使用的是ruby 2.1.0和Rails 3.2.17

解决方案

我们在两个应用中遇到同样的问题。原来,最近的堆栈升级导致Heroku配置变量中的一个引发此错误。其中一个密码有一个双引号,导致语法错误:未终止的带引号的字符串错误。我建议检查你的Heroku配置变量是否存在这个问题。



在你的控制台中检查 heroku config p>

When pushing my app Rails3 to Heroku, it gets rejected with:

Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment sh: Syntax error: Unterminated quoted string

but when I run ruby -c Gemfile I get Syntax OK.

Any tips?

Edit: source code can be found here: https://github.com/tubedude/portfolio_tracker I'm using ruby 2.1.0 and Rails 3.2.17

解决方案

We had the same issue on two of our apps. It turned out that a recent stack upgrade caused one of Heroku config variables to throw this error. One of our passwords had a double quote which caused theSyntax error: Unterminated quoted string Error. I suggest checking your Heroku config variables for this issue.

To check this run heroku config in your console

这篇关于捆绑安装期间,Heroku部署失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆