1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diaspora_ynh.git synced 2024-09-03 18:26:13 +02:00

Less logs from rails

This commit is contained in:
Augustin Trancart 2022-02-21 17:06:48 +01:00
parent df9920f210
commit 28af64c19c
No known key found for this signature in database
GPG key ID: 364720A015B27E4A

View file

@ -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