6

In my Jenkins build, the last step is to push to heroku and run a db migration. The git push works fine, and the app gets deployed, but I'm having trouble running a db migration. Below is the console output from Jenkins.

+ heroku run rake db:migrate --app myapp
Running rake db:migrate attached to terminal... stty: standard input: Invalid argument
up, run.6
stty: standard input: Invalid argument

If I run the same command from the server as the jenkins user, it works fine. I only get the error during the automated build process.

As background, this is a Rails 3.1 app running on Heroku Cedar.

deadwards
  • 1,531
  • 11
  • 18

1 Answers1

6

I was able to work around this by redirecting the output.

heroku run rake db:migrate --app myapp > rake.log
cat rake.log
Shawn Bower
  • 1,147
  • 1
  • 11
  • 18