1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-18 07:52:23 +01:00

[bug] unable to run interactive rails commands during the upgrade

This commit is contained in:
Sylvain 2021-06-10 17:24:16 +02:00
parent 6192e522e5
commit f1bf6cf4a5
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
# Changelog Fab-manager
- Updated upgrade instructions
- Fix a bug: unable to run interactive rails commands during the upgrade
## v5.0.0 2021 June 10

View File

@ -169,7 +169,7 @@ upgrade()
done
for PRE in "${PREPROCESSING[@]}"; do
printf "\e[91m::\e[0m \e[1mRunning preprocessing command %s...\e[0m\n" "$PRE"
if ! docker-compose run --rm "$SERVICE" bundle exec "$PRE"; then
if ! docker-compose run --rm "$SERVICE" bundle exec "$PRE" </dev/tty; then
printf "\e[91m[ ❌ ] Something went wrong while running \"%s\", please check the logs above.\e[39m\nExiting...\n" "$PRE"
exit 4
fi
@ -181,7 +181,7 @@ upgrade()
fi
for COMMAND in "${COMMANDS[@]}"; do
printf "\e[91m::\e[0m \e[1mRunning command %s...\e[0m\n" "$COMMAND"
if ! docker-compose run --rm "$SERVICE" bundle exec "$COMMAND"; then
if ! docker-compose run --rm "$SERVICE" bundle exec "$COMMAND" </dev/tty; then
printf "\e[91m[ ❌ ] Something went wrong while running \"%s\", please check the logs above.\e[39m\nExiting...\n" "$COMMAND"
exit 4
fi