Performing a heroic db rake: failing to migrate from Jenkins build

In my Jenkins build, the last step is to click on the hero and start the db migration. Pressing git works fine and the application deploys, but I am unable to migrate the db. 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 get an error during the auto build process.

As a background, this is a Rails 3.1 application running on Geroku cedars.

+6
source share
1 answer

I managed to get around this by redirecting the output.

 heroku run rake db:migrate --app myapp > rake.log cat rake.log 
+6
source

Source: https://habr.com/ru/post/898172/


All Articles