mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
(feat) Ability to ignore assets compilation errors in the upgrade script
This commit is contained in:
parent
a77717ede1
commit
2121dbed32
@ -4,6 +4,7 @@
|
||||
|
||||
- Updated sidekiq-unique-jobs to 7.1.23 to get rid of Sidekiq's default_worker_options deprecation warning
|
||||
- Allow moving with arrows in the setup script's inputs
|
||||
- Ability to ignore assets compilation errors in the upgrade script
|
||||
- Fix a bug: unable to connect with OAuth2
|
||||
- Fix a bug: when installing fab-manager as non-root user, most of the resulting installation directories were owned by root
|
||||
- Fix a bug: unable to edit OIDC provider
|
||||
|
@ -224,9 +224,9 @@ compile_assets()
|
||||
mkdir -p public/new_packs
|
||||
# shellcheck disable=SC2068
|
||||
if ! docker run --user "$(id -u):$(id -g)" --rm --env-file ./config/env ${ENV_ARGS[@]} --link "$PG_ID" --net "$PG_NET_ID" -v "${PWD}/public/new_packs:/usr/src/app/public/packs" "$IMAGE" bundle exec rake assets:precompile; then
|
||||
restore_tag
|
||||
printf "\e[91m[ ❌ ] Something went wrong while compiling the assets, please check the logs above.\e[39m\nExiting...\n"
|
||||
exit 4
|
||||
printf "\e[93m[ ⚠ ] Something may have went wrong while compiling the assets, please check the logs above.\e[39m\n"
|
||||
[[ "$YES_ALL" = "true" ]] && confirm="y" || read -rp "[91m::[0m [1mIgnore and continue?[0m (Y/n) " confirm </dev/tty
|
||||
if [[ "$confirm" = "n" ]]; then restore_tag; echo "Exiting..."; exit 4; fi
|
||||
fi
|
||||
docker-compose down
|
||||
if ! rm -rf public/packs; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user