mirror of
https://github.com/YunoHost-Apps/discourse_ynh.git
synced 2024-09-03 18:26:18 +02:00
reduce verbosity
This commit is contained in:
parent
61ff116a2c
commit
8a23a4c64b
3 changed files with 6 additions and 6 deletions
|
@ -135,10 +135,10 @@ exec_login_as $app RAILS_ENV=production bundle exec script/discourse remap ${old
|
|||
rake_exec="exec_login_as $app RAILS_ENV=production bin/rake"
|
||||
|
||||
# Regenerate assets
|
||||
$rake_exec assets:precompile
|
||||
ynh_exec_warn_less $rake_exec assets:precompile
|
||||
|
||||
# Regenerate all forum posts
|
||||
$rake_exec posts:rebake
|
||||
ynh_exec_warn_less $rake_exec posts:rebake
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALISATION
|
||||
|
|
|
@ -237,8 +237,8 @@ fi
|
|||
ynh_script_progression --message="Preparing the database..."
|
||||
|
||||
rake_exec="exec_login_as $app RAILS_ENV=production bin/rake"
|
||||
$rake_exec db:migrate
|
||||
$rake_exec assets:precompile
|
||||
ynh_exec_warn_less $rake_exec db:migrate
|
||||
ynh_exec_warn_less $rake_exec assets:precompile
|
||||
|
||||
#=================================================
|
||||
# POPULATE THE DATABASE
|
||||
|
|
|
@ -312,8 +312,8 @@ then
|
|||
ynh_script_progression --message="Preparing the database..."
|
||||
|
||||
rake_exec="exec_login_as $app RAILS_ENV=production bin/rake"
|
||||
$rake_exec db:migrate
|
||||
$rake_exec assets:precompile
|
||||
ynh_exec_warn_less $rake_exec db:migrate
|
||||
ynh_exec_warn_less $rake_exec assets:precompile
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue