mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-30 19:52:20 +01:00
[bug] unable to run interactive rails commands during the upgrade
This commit is contained in:
parent
6192e522e5
commit
f1bf6cf4a5
@ -1,6 +1,7 @@
|
|||||||
# Changelog Fab-manager
|
# Changelog Fab-manager
|
||||||
|
|
||||||
- Updated upgrade instructions
|
- Updated upgrade instructions
|
||||||
|
- Fix a bug: unable to run interactive rails commands during the upgrade
|
||||||
|
|
||||||
## v5.0.0 2021 June 10
|
## v5.0.0 2021 June 10
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ upgrade()
|
|||||||
done
|
done
|
||||||
for PRE in "${PREPROCESSING[@]}"; do
|
for PRE in "${PREPROCESSING[@]}"; do
|
||||||
printf "\e[91m::\e[0m \e[1mRunning preprocessing command %s...\e[0m\n" "$PRE"
|
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"
|
printf "\e[91m[ ❌ ] Something went wrong while running \"%s\", please check the logs above.\e[39m\nExiting...\n" "$PRE"
|
||||||
exit 4
|
exit 4
|
||||||
fi
|
fi
|
||||||
@ -181,7 +181,7 @@ upgrade()
|
|||||||
fi
|
fi
|
||||||
for COMMAND in "${COMMANDS[@]}"; do
|
for COMMAND in "${COMMANDS[@]}"; do
|
||||||
printf "\e[91m::\e[0m \e[1mRunning command %s...\e[0m\n" "$COMMAND"
|
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"
|
printf "\e[91m[ ❌ ] Something went wrong while running \"%s\", please check the logs above.\e[39m\nExiting...\n" "$COMMAND"
|
||||||
exit 4
|
exit 4
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user