1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/acropolis_ynh.git synced 2024-09-03 18:06:22 +02:00

less warnings

This commit is contained in:
yalh76 2022-07-15 15:44:56 +02:00
parent c80c2f2cf4
commit b6618f762d
2 changed files with 12 additions and 13 deletions

View file

@ -178,18 +178,17 @@ ynh_add_systemd_config --service="$app-sidekiq" --template="$app-sidekiq.service
ynh_script_progression --message="Installing acropolis..." ynh_script_progression --message="Installing acropolis..."
pushd "$final_path" pushd "$final_path"
sudo -u $app $ynh_ruby_load_path script/configure_bundler ynh_exec_warn_less ynh_exec_as $app $ynh_ruby_load_path script/configure_bundler
sudo -u $app $ynh_ruby_load_path bin/bundle config set path 'vendor/bundle' ynh_exec_warn_less ynh_exec_as $app $ynh_ruby_load_path bin/bundle config set path 'vendor/bundle'
sudo -u $app $ynh_ruby_load_path bin/bundle install --full-index ynh_exec_warn_less ynh_exec_as $app $ynh_ruby_load_path bin/bundle install --full-index
popd popd
ynh_script_progression --message="Preparing the database and create initial admin user..." ynh_script_progression --message="Preparing the database and create initial admin user..."
pushd "$final_path" pushd "$final_path"
rake_exec="sudo -u $app $ynh_ruby_load_path RAILS_ENV=production bin/rake" ynh_exec_warn_less ynh_exec_as $app $ynh_ruby_load_path RAILS_ENV=production bin/rake db:migrate
ynh_exec_warn_less $rake_exec db:migrate ynh_exec_warn_less ynh_exec_as $app $ynh_ruby_load_path RAILS_ENV=production bin/rake assets:precompile
ynh_exec_warn_less $rake_exec assets:precompile ynh_exec_warn_less ynh_exec_as $app $ynh_ruby_load_path RAILS_ENV=production bin/rake "admin:create[$admin, $email, $password]"
ynh_exec_warn_less $rake_exec "admin:create[$admin, $email, $password]"
popd popd
#================================================= #=================================================

View file

@ -173,12 +173,12 @@ ynh_add_systemd_config --service="$app-sidekiq" --template="acropolis-sidekiq.se
ynh_script_progression --message="Upgrading acropolis..." ynh_script_progression --message="Upgrading acropolis..."
pushd "$final_path" pushd "$final_path"
sudo -u $app $ynh_ruby_load_path bin/bundle config deployment 'true' ynh_exec_warn_less ynh_exec_as $app $ynh_ruby_load_path bin/bundle config deployment 'true'
sudo -u $app $ynh_ruby_load_path bin/bundle config without 'development test' ynh_exec_warn_less ynh_exec_as $app $ynh_ruby_load_path bin/bundle config without 'development test'
sudo -u $app $ynh_ruby_load_path bin/bundle install -j$(getconf _NPROCESSORS_ONLN) ynh_exec_warn_less ynh_exec_as $app $ynh_ruby_load_path bin/bundle install -j$(getconf _NPROCESSORS_ONLN)
sudo -u $app RAILS_ENV=production $ynh_ruby_load_path bin/bundle exec rails assets:clean ynh_exec_warn_less ynh_exec_as $app $ynh_ruby_load_path RAILS_ENV=production bin/rake assets:clean
sudo -u $app RAILS_ENV=production $ynh_ruby_load_path bin/bundle exec rails assets:precompile ynh_exec_warn_less ynh_exec_as $app $ynh_ruby_load_path RAILS_ENV=production bin/rake exec rails assets:precompile
sudo -u $app RAILS_ENV=production $ynh_ruby_load_path bin/bundle exec rails db:migrate ynh_exec_warn_less ynh_exec_as $app $ynh_ruby_load_path RAILS_ENV=production bin/rake exec rails db:migrate
popd popd
#================================================= #=================================================