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.
I was able to work around this by redirecting the output.
heroku run rake db:migrate --app myapp > rake.log
cat rake.log
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With