From 28af64c19caf692fe0bdf9edf099dfcb4bfe6d1b Mon Sep 17 00:00:00 2001 From: Augustin Trancart Date: Mon, 21 Feb 2022 17:06:48 +0100 Subject: [PATCH] Less logs from rails --- scripts/bundle_app | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/bundle_app b/scripts/bundle_app index c2c9c77..76b77c1 100644 --- a/scripts/bundle_app +++ b/scripts/bundle_app @@ -7,17 +7,20 @@ cd diaspora script/configure_bundler bin/bundle install --full-index --with=postgresql EOF +# for some reason rake logs a lot in stderr (tried --quiet, didn't change anything) +# redirecting it to stdout to have a saner log on yunohost side sudo -u $app --login << EOF cd diaspora -RAILS_ENV=production bundle exec rake db:migrate +RAILS_ENV=production bundle exec rake db:migrate 2>&1 EOF #================================================= # ASSETS PRECOMPILATION #================================================= + sudo -u $app --login << EOF cd diaspora -RAILS_ENV=production bin/rake assets:precompile +RAILS_ENV=production bin/rake assets:precompile 2>&1 EOF popd