Reputation: 183919
All of a sudden we can't push our Rails app to Heroku- it's failing the same way on both staging and production environments, as well as a new app we just set up for testing. This app has been running on Heroku for 9 months, with multiple pushes a week, without any issues, but as of yesterday, after some innocuous changes to a model file, we're getting the following error:
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using 1.5.2
New app detected loading default bundler cache
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment sh: Syntax error: "(" unexpected
Bundler Output: ! ! Failed to install gems via Bundler. !
! Push rejected, failed to compile Ruby app
UPDATE:
What's crazy is that we just rolled everything back to the last commit that had successfully deployed to Heroku, and it's still failing. In other words, the exact same code deployed fine a few days ago, and now we're getting this error.
??
Upvotes: 3
Views: 250
Reputation: 85
We had similar issues with a couple of our Heroku apps. We figured out that a recent Heroku stack upgrade changed how they parse Heroku config variables. One of our variables had a double quote "
that threw a syntax error when attempting to bundle. I suggest checking your Heroku config variables to make sure there is not open parenthesis or double quotes
you can check this by running heroku config
Upvotes: 3