I am having trouble deploying a Rails4 app to Heroku with CircleCI.
Specifically, I get this in the deployment step.
$ heroku run rake db:migrate --app <APP_NAME> Enter your Heroku credentials. Email: command heroku run rake db:migrate --app <APP_NAME> took more than 400 seconds since last output
My circle.yml is like that:
test: override: - echo "test" deployment: staging: branch: <BRANCH_NAME> commands: - "[[ ! -s \"$(git rev-parse --git-dir)/shallow\" ]] || git fetch --unshallow" - git push firstname.lastname@example.org:<APP_NAME>.git $CIRCLE_SHA1:refs/heads/master - heroku run rake db:migrate --app <APP_NAME>: timeout: 400
and the last line fails.
I confirmed the project’s Heroku API Key and Current deploy user are correctly set to those of my heroku account.
Also, when I tried Rebuild with SSH, I logged in the CircleCI container and successfully executed
heroku run.. itself, although I needed to login.
Any Ideas on what config else to check?
I checked other steps on CircleCI.
Install Heroku API credentialsstep shows nothing but it is green, so I think it was successful.
$ git push email@example.com:..step shows the result like this, so I think it was also successful.
git push firstname.lastname@example.org:<APP_NAME>.git $CIRCLE_SHA1:refs/heads/master Warning: Permanently added 'heroku.com,50.19.XX.XXX' (RSA) to the list of known hosts. Everything up-to-date