I\'m working in rails 3.2 and I receive an error when I try to push to heroku:
git push heroku master
Counting objects: 496, done.
Delta compression using u
If you run $ heroku logs
you may get a "hint" to what the problem is. For me, Heroku could not detect what type of app I was creating. It required me to set the buildpack. Since I was creating a Node.js app, I just had to run $ heroku buildpacks:set https://github.com/heroku/heroku-buildpack-nodejs
. You can read more about it here: https://devcenter.heroku.com/articles/buildpacks. No pushing issues after that.
I know this is an old question, but still posting this here incase someone else gets stuck.
If you get this error and the terminal is not descriptive enough to help you, Heroku might be able to tell you what is wrong through their website. Try the following:
In my case, I had accidentally ignored my Gemfile.lock.
simple answer
$ heroku config:set DISABLE_COLLECTSTATIC=1
after
$ git push heroku master
I had the same issue.
Look at your git ignore and check if .env is not ignored.
It was my problem and resolved to my case.
Check the following
$ git status
$ git add .
$ bundle install
$ git add Gemfile.lock
$ git commit -am "Added Gemfile.lock"
$ git push heroku master
Your push should work
The package setuptools/distribute is listed in requirements.txt. Please remove the same.